|
STM32 Traffic Control
|
Public API for SysTick timer configuration and millisecond utilities. More...
#include "stm32f446xx.h"Go to the source code of this file.
Functions | |
| void | SysTick_Handler (void) |
| SysTick interrupt handler called every 1 millisecond. | |
| void | systick_init (void) |
| Initialize the SysTick timer for 1ms tick interrupts. | |
| uint32_t | systickGetMillis (void) |
| Get the current system uptime in milliseconds. | |
| void | systickDelayMs (int delay) |
| Busy-wait delay for a specified number of milliseconds. | |
Public API for SysTick timer configuration and millisecond utilities.
| void SysTick_Handler | ( | void | ) |
SysTick interrupt handler called every 1 millisecond.
Increments the global milliseocnd counter and calls application-specific timeout functions:
| void systick_init | ( | void | ) |
Initialize the SysTick timer for 1ms tick interrupts.
Configures the SysTick LOAD register and control register to generate interrupts every millisecond based on the system clock.
| void systickDelayMs | ( | int | delay | ) |
Busy-wait delay for a specified number of milliseconds.
Uses systickGetMillis() to implement a simple blocking delay.
| delay | Number of milliseconds to wait |
| uint32_t systickGetMillis | ( | void | ) |
Get the current system uptime in milliseconds.
Returns the number of milliseconds elapsed since SysTick initialization.