File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 77 */
88extern volatile uint32_t msTicks ;
99
10-
1110/**
12- * @brief Add blocking delay
13- *
14- * @param ms delay in milliseconds
11+ * @brief Generate delay in milloseconds
12+ *
13+ * @param ms number of milliseconds
1514 */
1615void delay (uint32_t ms );
1716
18-
1917/**
20- * @brief Interrupt handler function
21- *
18+ * @brief Event handler for systick timer overflow event
19+ * As address of this function is to be inserted in the vector table, this should not be made inline
2220 */
2321void SysTick_Handler (void );
Original file line number Diff line number Diff line change 11#include <timer.h>
22
3-
4-
53volatile uint32_t msTicks = 0 ;
64
7- inline void SysTick_Handler (void )
5+ void SysTick_Handler (void )
86{
97 msTicks ++ ;
108}
@@ -16,4 +14,4 @@ void delay(uint32_t ms)
1614 {
1715 __asm("nop" );
1816 }
19- }
17+ }
You can’t perform that action at this time.
0 commit comments