19 #ifndef _MINILIB_NANOSLEEP_H_
20 #define _MINILIB_NANOSLEEP_H_
25 #include <sys/signal.h>
29 #include <freertos/FreeRTOS.h>
30 #include <freertos/task.h>
39 #define MN_DELAY_SEC(sec) mn::delay(timespan_t(0,0,0,sec,0))
40 #define MN_DELAY_MICROS(ms) mn::delay(timespan_t(0,0,0,0,ms))
#define MN_EXTERNC_BEGINN
Definition: mn_defines.hpp:49
#define MN_EXTERNC_END
Definition: mn_defines.hpp:50
Definition: mn_allocator_typetraits.hpp:25
void ndelay(const timespan_t &req, timespan_t *rem)
Definition: mn_sleep.cpp:112
basic_timespan timespan_t
Definition: mn_timespan.hpp:225
unsigned int delay_until(timespan_t &tsPreviousWakeTime, const unsigned int &uiTimeIncrement)
Delay a task until a specified time.
Definition: mn_sleep.cpp:134
void delay(const timespan_t &ts)
Definition: mn_sleep.cpp:147