Code: Select all
* @note The maximum specifiable value is implementation dependent.
....
#define chThdSleepSeconds(sec) chThdSleep(S2ST(sec))
and in chvt.h:
Code: Select all
#define S2ST(sec) \
((systime_t)((uint32_t)(sec) * (uint32_t)NIL_CFG_ST_FREQUENCY))
So, if NIL_CFG_ST_FREQUENCY = 10000 ( case of STM32F407 ), the maximum number of seconds will be:
2^32 / 10000 = 429496,7296
or 4 days 23 hours 18 minutes 16 seconds
Is it correct?
But I try chThdSleepSeconds( 24*60*60 ) (one day) and it seems like the thread will not wake up