Revision 512abac1 os/core/src/aos_thread.c

View differences:

os/core/src/aos_thread.c
33 33
  aosSysGetUptimeX(&uptime);
34 34

  
35 35
  // while the remaining time is too long, it must be split into multiple sleeps
36
  while ( (*t > uptime) && ((*t - uptime) > THD_MAX_SLEEP_US) ) {
37
    chThdSleepS(US2ST(THD_MAX_SLEEP_US));
36
  while ( (*t > uptime) && ((*t - uptime) > AOS_THD_MAX_SLEEP_US) ) {
37
    chThdSleepS(US2ST(AOS_THD_MAX_SLEEP_US));
38 38
    aosSysGetUptimeX(&uptime);
39 39
  }
40 40

  

Also available in: Unified diff