diff options
| author | Bernard Xiong <[email protected]> | 2020-02-07 21:31:32 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-07 21:31:32 +0800 |
| commit | 57ff16edb926948c647e3ec7b6f9eccf186cf98f (patch) | |
| tree | 4d98bc2f21ea48a94129b7b3720a125c31eb625e /include | |
| parent | e7af915cf2e05fd4fc38be4636a9637f98d37072 (diff) | |
| parent | 720d8479a574746020747ef36bc33a8159206289 (diff) | |
Merge pull request #3365 from longtengmcu/master
给软件定时器增加定时器工作状态查询的功能
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index c8184a5a4b..8b86213082 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -431,6 +431,7 @@ struct rt_object_information #define RT_TIMER_CTRL_GET_TIME 0x1 /**< get timer control command */ #define RT_TIMER_CTRL_SET_ONESHOT 0x2 /**< change timer to one shot */ #define RT_TIMER_CTRL_SET_PERIODIC 0x3 /**< change timer to periodic */ +#define RT_TIMER_CTRL_GET_STATE 0x4 /**< get timer run state active or deactive*/ #ifndef RT_TIMER_SKIP_LIST_LEVEL #define RT_TIMER_SKIP_LIST_LEVEL 1 |
