Skip to content

Commit c6fe342

Browse files
Add prototype for systick_attach_callback (thanks to @ag123)
1 parent a8d1c1d commit c6fe342

File tree

1 file changed

+6
-0
lines changed
  • STM32F1/system/libmaple/include/libmaple

1 file changed

+6
-0
lines changed

STM32F1/system/libmaple/include/libmaple/systick.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ static inline uint32 systick_check_underflow(void) {
108108
return SYSTICK_BASE->CSR & SYSTICK_CSR_COUNTFLAG;
109109
}
110110

111+
/**
112+
* @brief prototype for systick_attach_callback
113+
*
114+
*/
115+
extern void systick_attach_callback(void (*callback)(void));
116+
111117
#ifdef __cplusplus
112118
} // extern "C"
113119
#endif

0 commit comments

Comments
 (0)