diff options
| author | zms123456 <[email protected]> | 2024-04-16 11:15:37 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-15 23:15:37 -0400 |
| commit | 6ad0b2bd093d26771bc1348d9bcda7eac7e1dc52 (patch) | |
| tree | ce28db06b0ba21aaa674ce8221e4c9f88d4c0fd3 /include/rtdef.h | |
| parent | d10fb37c05a82518a00fc7eb2a84ea905d11e042 (diff) | |
[components][drivers]fix workqueue bug
fix workqueue bug
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index d8082150b2..e524800f43 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -569,13 +569,14 @@ struct rt_object_information */ #define RT_TIMER_FLAG_DEACTIVATED 0x0 /**< timer is deactive */ #define RT_TIMER_FLAG_ACTIVATED 0x1 /**< timer is active */ +#define RT_TIMER_FLAG_PROCESSING 0x2 /**< timer's timeout fuction is processing */ #define RT_TIMER_FLAG_ONE_SHOT 0x0 /**< one shot timer */ -#define RT_TIMER_FLAG_PERIODIC 0x2 /**< periodic timer */ +#define RT_TIMER_FLAG_PERIODIC 0x4 /**< periodic timer */ #define RT_TIMER_FLAG_HARD_TIMER 0x0 /**< hard timer,the timer's callback function will be called in tick isr. */ -#define RT_TIMER_FLAG_SOFT_TIMER 0x4 /**< soft timer,the timer's callback function will be called in timer thread. */ +#define RT_TIMER_FLAG_SOFT_TIMER 0x8 /**< soft timer,the timer's callback function will be called in timer thread. */ #define RT_TIMER_FLAG_THREAD_TIMER \ - (0x8 | RT_TIMER_FLAG_HARD_TIMER) /**< thread timer that cooperates with scheduler directly */ + (0x10 | RT_TIMER_FLAG_HARD_TIMER) /**< thread timer that cooperates with scheduler directly */ #define RT_TIMER_CTRL_SET_TIME 0x0 /**< set timer control command */ #define RT_TIMER_CTRL_GET_TIME 0x1 /**< get timer control command */ |
