forked from haraldwolff/avr-fw-modules
16 lines
194 B
C
16 lines
194 B
C
|
#include <sys/threads.h>
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
void thread_sleep_irq(THREAD* thread)
|
||
|
{
|
||
|
if (thread == NULL)
|
||
|
thread = current_thread();
|
||
|
|
||
|
thread->wait = 1;
|
||
|
|
||
|
schedule_thread( thread );
|
||
|
};
|
||
|
|
||
|
|