![]() |
MKM34Z256VLx7 Bare Metal Software Drivers
R4.1.6
Reference Manual
|
This section describes functions and macros of the driver's API.
Macros | |
#define | SYST_GetCntrVal() |
Returns inverse value of the 24-bit System Timer counter. More... | |
#define | SYST_ClrCntrVal() |
Clears 24-bit System Timer current counter value. More... | |
#define | SYST_Enable() |
Enables operation of the System Timer. More... | |
#define | SYST_Disable() |
Disables operation of the System Timer. More... | |
#define | SYST_Init(cfg, ip, callback) |
System Timer initialization. More... | |
#define SYST_GetCntrVal | ( | ) |
This macro returns inverse value of the 24-bit System Timer counter. The value equals to number of system clock ticks elapsed since Timer operation resumes after clearing.
#define SYST_ClrCntrVal | ( | ) |
This macro clears 24-bit System Timer current counter value.
#define SYST_Enable | ( | ) |
This macro enables operation of the System Timer.
#define SYST_Disable | ( | ) |
This macro disables operation of the System Timer.
#define SYST_Init | ( | cfg, | |
ip, | |||
callback | |||
) |
This function initializes System Timer module. Function also installs callback function for interrupt vector 15 (SysTick).
cfg | Select one of SYST Configuration Structures |
ip | Select one of the ARM Cortex-M0+ Interrupt Priority Levels. |
callback | Pointer to the SYST Callback Function. |