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

Arm Cortex-M4 SysTick driver implementation. More...

#include "arm_cortex_m4_systick.h"
#include "arm_cortex_m4.h"
#include "err.h"
#include "stm32f401re_rcc.h"
Include dependency graph for arm_cortex_m4_systick.c:

Go to the source code of this file.

Classes

struct  internal_state_s
 Internal state of 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.
void SysTick_Handler (void)
 SysTick exception handler. Increments the millisecond counter on each 1 ms wrap.

Variables

static struct internal_state_s internal_state
 Singleton instance of the SysTick driver internal state.

Detailed Description

Arm Cortex-M4 SysTick driver implementation.

Author
github.com/Baksi675
Version
0.1
Date
2026-02-01

Definition in file arm_cortex_m4_systick.c.

Variable Documentation

◆ internal_state

struct internal_state_s internal_state
static

Singleton instance of the SysTick driver internal state.

Definition at line 33 of file arm_cortex_m4_systick.c.