systick.h
¶
System timer (SysTick) support.
Contents
Functions¶
-
void
systick_init
(uint32 reload_val)¶ Initialize and enable SysTick.
Clocks the system timer with the core clock, turns it on, and enables interrupts.
- Parameters
reload_val
-Appropriate reload counter to tick every 1 ms.
-
void
systick_enable
()¶ Clock the system timer with the core clock and turn it on; interrupt every 1 ms, for systick_timer_millis.
-
void
systick_disable
()¶ Clock the system timer with the core clock, but don’t turn it on or enable interrupt.
-
static uint32
systick_check_underflow
(void)¶ Check for underflow.
This function returns 1 if the SysTick timer has counted to 0 since the last time it was called. However, any reads of any part of the SysTick Control and Status Register SYSTICK_BASE->CSR will interfere with this functionality. See the ARM Cortex M3 Technical Reference Manual for more details (e.g. Table 8-3 in revision r1p1).
Register Map Base Pointers¶
-
SYSTICK_BASE
¶ SysTick register map base pointer.