|
GPS Device
|
Public functions to interact with the SysTick driver. 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. | |
Public functions to interact with the SysTick driver.
| ERR_te systick_init | ( | SYSTICK_CFG_ts const * | systick_cfg | ) |
Initializes and starts the SysTick timer.
Computes the reload value from the current AHB clock frequency to achieve a 1 ms tick period, configures the clock source and interrupt settings, clears the current value register, and enables the counter.
| [in] | systick_cfg | Pointer to the SysTick configuration structure. |
Definition at line 41 of file arm_cortex_m4_systick.c.


| void systick_deinit | ( | void | ) |
Deinitializes the SysTick timer.
Disables the counter, clears the interrupt and clock source configuration, resets the reload and current value registers, and resets the internal state. Does nothing if SysTick has not been initialized.
Definition at line 84 of file arm_cortex_m4_systick.c.
| void systick_get_def_cfg | ( | SYSTICK_CFG_ts * | systick_cfg_o | ) |
Populates a configuration structure with the default SysTick settings.
Default configuration:
| [out] | systick_cfg_o | Pointer to the configuration structure to populate. |
Definition at line 102 of file arm_cortex_m4_systick.c.
| uint32_t systick_get_ms | ( | void | ) |
Returns the number of milliseconds elapsed since SysTick was initialized.
The counter is incremented by the SysTick exception handler on each 1 ms wrap. Returns 0 if SysTick has not been initialized.
Definition at line 108 of file arm_cortex_m4_systick.c.
