1616 * 2012-12-15 Bernard fix the next timeout issue in soft timer
1717 * 2014-07-12 Bernard does not lock scheduler when invoking soft-timer
1818 * timeout function.
19- * 2021-08-15 supperthomas add the comment
19+ * 2021-08-15 supperthomas add the comment
2020 */
2121
2222#include <rtthread.h>
@@ -60,9 +60,9 @@ static void (*rt_timer_exit_hook)(struct rt_timer *timer);
6060/**@{*/
6161
6262/**
63- * @brief This function will set a hook function on timer,
63+ * @brief This function will set a hook function on timer,
6464 * which will be invoked when enter timer timeout callback function.
65- *
65+ *
6666 * @param hook the function point of timer
6767 */
6868void rt_timer_enter_sethook (void (* hook )(struct rt_timer * timer ))
@@ -71,9 +71,9 @@ void rt_timer_enter_sethook(void (*hook)(struct rt_timer *timer))
7171}
7272
7373/**
74- * @brief This function will set a hook function, which will be
74+ * @brief This function will set a hook function, which will be
7575 * invoked when exit * timer timeout callback function.
76- *
76+ *
7777 * @param hook the function point of timer
7878 */
7979void rt_timer_exit_sethook (void (* hook )(struct rt_timer * timer ))
@@ -87,11 +87,11 @@ void rt_timer_exit_sethook(void (*hook)(struct rt_timer *timer))
8787
8888/**
8989 * @brief [internal] the init funtion of timer
90- *
90+ *
9191 * the internal called function of rt_timer_init
92- *
92+ *
9393 * @see rt_timer_init
94- *
94+ *
9595 * @param timer the static timer object
9696 * @param timeout the timeout function
9797 * @param parameter the parameter of timeout function
@@ -127,9 +127,9 @@ static void _rt_timer_init(rt_timer_t timer,
127127
128128/**
129129 * @brief find the next emtpy timer
130- *
130+ *
131131 * @param timer_list the timer of the next timeout
132- *
132+ *
133133 * @return rt_tick_t the point of timer
134134 */
135135static rt_tick_t rt_timer_list_next_timeout (rt_list_t timer_list [])
@@ -155,8 +155,8 @@ static rt_tick_t rt_timer_list_next_timeout(rt_list_t timer_list[])
155155}
156156
157157/**
158- * @brief remove the timer
159- *
158+ * @brief remove the timer
159+ *
160160 * @param timer the point of timer
161161 */
162162rt_inline void _rt_timer_remove (rt_timer_t timer )
@@ -172,8 +172,8 @@ rt_inline void _rt_timer_remove(rt_timer_t timer)
172172#if RT_DEBUG_TIMER
173173/**
174174 * @brief the number of timer
175- *
176- * @param timer
175+ *
176+ * @param timer
177177 * @return int the count
178178 */
179179static int rt_timer_count_height (struct rt_timer * timer )
@@ -189,7 +189,7 @@ static int rt_timer_count_height(struct rt_timer *timer)
189189}
190190/**
191191 * @brief dump the all timer information
192- *
192+ *
193193 * @param timer_heads the head of timer
194194 */
195195void rt_timer_dump (rt_list_t timer_heads [])
@@ -244,7 +244,7 @@ RTM_EXPORT(rt_timer_init);
244244
245245/**
246246 * @brief This function will detach a timer from timer management.
247- *
247+ *
248248 * @param timer the timer to be detached
249249 * @return rt_err_t RT_EOK
250250 */
@@ -555,7 +555,7 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg)
555555RTM_EXPORT (rt_timer_control );
556556
557557/**
558- * @brief This function will check timer list, if a timeout event happens,
558+ * @brief This function will check timer list, if a timeout event happens,
559559 * the corresponding timeout function will be invoked.
560560 *
561561 * @note this function shall be invoked in operating system timer interrupt.
@@ -719,9 +719,9 @@ void rt_soft_timer_check(void)
719719}
720720
721721/**
722- * @brief system timer thread entry
723- *
724- * @param parameter
722+ * @brief system timer thread entry
723+ *
724+ * @param parameter
725725 */
726726static void rt_thread_timer_entry (void * parameter )
727727{
0 commit comments