Revision 0128be0f os/core/inc/aos_thread.h

View differences:

os/core/inc/aos_thread.h
70 70
/**
71 71
 * @brief   Maximum timeframe that can be slept in system ticks.
72 72
 */
73
#define AOS_THD_MAX_SLEEP_ST    TIME_MAXIMUM
73
#define AOS_THD_MAX_SLEEP_ST    TIME_MAX_INTERVAL
74 74

  
75 75
/**
76 76
 * @brief   Maximum timeframe that can be slept in seconds.
77 77
 */
78
#define AOS_THD_MAX_SLEEP_S     (ST2S(AOS_THD_MAX_SLEEP_ST) - 1)
78
#define AOS_THD_MAX_SLEEP_S     (TIME_I2S(AOS_THD_MAX_SLEEP_ST) - 1)
79 79

  
80 80
/**
81 81
 * @brief   Maximum timeframe that can be slept in milliseconds.
82 82
 */
83
#define AOS_THD_MAX_SLEEP_MS    (ST2MS(AOS_THD_MAX_SLEEP_ST) - 1)
83
#define AOS_THD_MAX_SLEEP_MS    (TIME_I2MS(AOS_THD_MAX_SLEEP_ST) - 1)
84 84

  
85 85
/**
86 86
 * @brief   Maximum timeframe that can be slept in microseconds.
87 87
 */
88
#define AOS_THD_MAX_SLEEP_US    (ST2US(AOS_THD_MAX_SLEEP_ST) - 1)
88
#define AOS_THD_MAX_SLEEP_US    (TIME_I2US(AOS_THD_MAX_SLEEP_ST) - 1)
89 89

  
90 90
#ifdef __cplusplus
91 91
extern "C" {

Also available in: Unified diff