diff options
| author | guozhanxin <[email protected]> | 2018-11-13 11:32:01 +0800 |
|---|---|---|
| committer | guozhanxin <[email protected]> | 2018-11-13 11:32:15 +0800 |
| commit | d343c6578a0c12c4bdc98e7634907fb9779ba0d7 (patch) | |
| tree | 18ddd0fdc019a7c3cdc7c7d1f549ad1a798dbafc /include/rtthread.h | |
| parent | f6783c6f02e5e6ec513f9ce55ae64f8dc2ee5dd9 (diff) | |
[kernel]Change 'rt_timer_timeout_hook' function to 'rt_timer_enter_hook' and add 'rt_timer_exit_hook' hook function.
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index fc5029a220..96ebe1940a 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -100,7 +100,8 @@ rt_tick_t rt_timer_next_timeout_tick(void); void rt_timer_check(void); #ifdef RT_USING_HOOK -void rt_timer_timeout_sethook(void (*hook)(struct rt_timer *timer)); +void rt_timer_enter_sethook(void (*hook)(struct rt_timer *timer)); +void rt_timer_exit_sethook(void (*hook)(struct rt_timer *timer)); #endif /**@}*/ |
