Skip to content

Commit d862594

Browse files
committed
💡 update documentation comment
1 parent 96e415e commit d862594

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

dma/include/timer.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@
77
*/
88
extern 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
*/
1615
void 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
*/
2321
void SysTick_Handler(void);

dma/src/timer.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#include<timer.h>
22

3-
4-
53
volatile 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+
}

0 commit comments

Comments
 (0)