GPS Device
Loading...
Searching...
No Matches
arm_cortex_m4_systick.h File Reference

Arm Cortex-M4 SysTick driver public API. More...

#include <stdint.h>
#include "err.h"
Include dependency graph for arm_cortex_m4_systick.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Arm Cortex-M4 SysTick driver public API.

Author
github.com/Baksi675

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:

Version
0.1
Date
2026-02-01

Definition in file arm_cortex_m4_systick.h.