Skip to content

Commit 19bcf9a

Browse files
committed
add the formatted file
1 parent 30fd28a commit 19bcf9a

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

src/irq.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ static void (*rt_interrupt_leave_hook)(void);
2222

2323
/**
2424
* @ingroup Hook
25-
*
25+
*
2626
* @brief This function set a hook function when the system enter a interrupt
27-
*
27+
*
2828
* @note the hook function must be simple and never be blocked or suspend.
29-
*
29+
*
3030
* @param hook The function point to be called
3131
*/
3232
void rt_interrupt_enter_sethook(void (*hook)(void))
@@ -36,11 +36,11 @@ void rt_interrupt_enter_sethook(void (*hook)(void))
3636

3737
/**
3838
* @ingroup Hook
39-
*
39+
*
4040
* @brief This function set a hook function when the system exit a interrupt.
41-
*
41+
*
4242
* @note the hook function must be simple and never be blocked or suspend.
43-
*
43+
*
4444
* @param hook The function point to be called
4545
*/
4646
void rt_interrupt_leave_sethook(void (*hook)(void))
@@ -64,9 +64,9 @@ volatile rt_uint8_t rt_interrupt_nest = 0;
6464

6565
/**
6666
* @brief This function will be invoked by BSP, when enter interrupt service routine
67-
*
67+
*
6868
* @note please don't invoke this routine in application
69-
*
69+
*
7070
* @see rt_interrupt_leave
7171
*/
7272
void rt_interrupt_enter(void)
@@ -86,9 +86,9 @@ RTM_EXPORT(rt_interrupt_enter);
8686

8787
/**
8888
* @brief This function will be invoked by BSP, when leave interrupt service routine
89-
*
89+
*
9090
* @note please don't invoke this routine in application
91-
*
91+
*
9292
* @see rt_interrupt_enter
9393
*/
9494
void rt_interrupt_leave(void)
@@ -108,10 +108,10 @@ RTM_EXPORT(rt_interrupt_leave);
108108

109109
/**
110110
* @brief This function will return the nest of interrupt.
111-
*
111+
*
112112
* User application can invoke this function to get whether current
113113
* context is interrupt context.
114-
*
114+
*
115115
* @return rt_uint8_t the number of nested interrupts.
116116
*/
117117
RT_WEAK rt_uint8_t rt_interrupt_get_nest(void)

src/timer.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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
*/
6868
void 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
*/
7979
void 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
*/
135135
static 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
*/
162162
rt_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
*/
179179
static 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
*/
195195
void 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)
555555
RTM_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
*/
726726
static void rt_thread_timer_entry(void *parameter)
727727
{

0 commit comments

Comments
 (0)