|
GPS Device
|
Arm Cortex-M4 SysTick driver public API. More...


Go to the source code of this file.
Classes | |
| struct | SYSTICK_CFG_ts |
| Configuration structure for initializing the SysTick timer. More... | |
Enumerations | |
| enum | SYSTICK_CLK_SOURCE_te { SYSTICK_CLK_SOURCE_EXTERNAL , SYSTICK_CLK_SOURCE_PROCESSOR } |
| SysTick clock source selection. More... | |
| enum | SYSTICK_IT_te { SYSTICK_IT_FALSE , SYSTICK_IT_TRUE } |
| SysTick interrupt enable selection. More... | |
Functions | |
| ERR_te | systick_init (SYSTICK_CFG_ts const *systick_cfg) |
| Initializes and starts the SysTick timer. | |
| void | systick_deinit (void) |
| Deinitializes the SysTick timer. | |
| void | systick_get_def_cfg (SYSTICK_CFG_ts *systick_cfg_o) |
| Populates a configuration structure with the default SysTick settings. | |
| uint32_t | systick_get_ms (void) |
| Returns the number of milliseconds elapsed since SysTick was initialized. | |
Arm Cortex-M4 SysTick driver public API.
This module provides a millisecond-resolution tick counter backed by the Cortex-M4 SysTick timer. The counter is incremented in the SysTick exception handler and is accessible via systick_get_ms.
The reload value is computed automatically from the AHB clock frequency to produce a 1 ms tick period regardless of the system clock speed.
Typical usage:
Definition in file arm_cortex_m4_systick.h.