STM32 RTOS
0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Toggle main menu visibility
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
44
DRIVER_MUST_CHECK
DriverStatus_e
systickInit
(
SysTickRegisters_t
*systick, uint32_t core_hz,
45
uint32_t tick_hz);
46
54
void
systickDeinit
(
SysTickRegisters_t
*systick);
55
57
58
#endif
/* SYSTICK_H */
driver_status.h
The status every fallible driver function returns.
DriverStatus_e
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
Definition
driver_status.h:32
DRIVER_MUST_CHECK
#define DRIVER_MUST_CHECK
Make ignoring a function's result a compile error (with -Werror).
Definition
driver_status.h:22
systickInit
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
systickDeinit
void systickDeinit(SysTickRegisters_t *systick)
Stop SysTick and zero CTRL, LOAD and VAL.
Definition
systick.c:52
SysTickRegisters_t
SysTick register block.
Definition
systick_reg.h:19
systick_reg.h
SysTick registers: the Armv7-M 24-bit system timer (PM0214, SysTick chapter).
drivers
inc
systick.h
Generated by
1.18.0