System timer (SysTick) support.
Contents
SysTick register map type.
Public Members
- __io uint32 CSR
Control and status register.
- __io uint32 RVR
Reload value register.
- __io uint32 CNT
Current value register (“count”).
- __io uint32 CVR
Calibration value register.
Initialize and enable SysTick.
Clocks the system timer with the core clock, turns it on, and enables interrupts.
Parameters: |
|
---|
Clock the system timer with the core clock and turn it on; interrupt every 1 ms, for systick_timer_millis.
Clock the system timer with the core clock, but don’t turn it on or enable interrupt.
Returns the system uptime, in milliseconds.
Returns the current value of the SysTick counter.
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).
SysTick register map base pointer.