diff options
| author | longtengmcu <[email protected]> | 2020-02-07 16:43:39 +0800 |
|---|---|---|
| committer | longtengmcu <[email protected]> | 2020-02-07 16:43:39 +0800 |
| commit | 720d8479a574746020747ef36bc33a8159206289 (patch) | |
| tree | 7abc7d2dc04325098542f1d7519026d30a4d9a6c /include/rtdef.h | |
| parent | bad4f924514a287b75af189c8bd1418935188a47 (diff) | |
给软件定时器增加定时器工作状态查询的功能
Diffstat (limited to 'include/rtdef.h')
| -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 |
