#include #include void thread_set_periodic(THREAD* thread,int32_t us) { ATOMIC if (!thread) { thread = current_thread(); }; thread->periode = thread->periodic = us; schedule_thread( thread ); };