summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2018-11-13 11:32:01 +0800
committerguozhanxin <[email protected]>2018-11-13 11:32:15 +0800
commitd343c6578a0c12c4bdc98e7634907fb9779ba0d7 (patch)
tree18ddd0fdc019a7c3cdc7c7d1f549ad1a798dbafc /include
parentf6783c6f02e5e6ec513f9ce55ae64f8dc2ee5dd9 (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')
-rw-r--r--include/rtthread.h3
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
/**@}*/