STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches
systick.h
Go to the documentation of this file.
1
13#ifndef SYSTICK_H
14#define SYSTICK_H
15
16#include "driver_status.h"
17#include "systick_reg.h"
18
19#include <stdint.h>
20
25
45 uint32_t tick_hz);
46
55
57
58#endif /* SYSTICK_H */
The status every fallible driver function returns.
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
#define DRIVER_MUST_CHECK
Make ignoring a function's result a compile error (with -Werror).
DRIVER_MUST_CHECK DriverStatus_e systickInit(SysTickRegisters_t *systick, uint32_t core_hz, uint32_t tick_hz)
Start SysTick at tick_hz from the processor clock, with its interrupt on.
Definition systick.c:12
void systickDeinit(SysTickRegisters_t *systick)
Stop SysTick and zero CTRL, LOAD and VAL.
Definition systick.c:52
SysTick register block.
Definition systick_reg.h:19
SysTick registers: the Armv7-M 24-bit system timer (PM0214, SysTick chapter).