MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
SYST API Specification

Overview

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...
 

Macro Definition Documentation

#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.

Returns
uint32 24-bit Timer current value.
Note
Implemented as an inline macro.
See also
SYST_ClrCntrVal
#define SYST_ClrCntrVal ( )

This macro clears 24-bit System Timer current counter value.

Note
Implemented as an inline macro.
See also
SYST_GetCntrVal
#define SYST_Enable ( )

This macro enables operation of the System Timer.

Note
Implemented as an inline macro.
See also
SYST_Disable
#define SYST_Disable ( )

This macro disables operation of the System Timer.

Note
Implemented as an inline macro.
See also
SYST_Enable
#define SYST_Init (   cfg,
  ip,
  callback 
)

This function initializes System Timer module. Function also installs callback function for interrupt vector 15 (SysTick).

Parameters
cfgSelect one of SYST Configuration Structures
ipSelect one of the ARM Cortex-M0+ Interrupt Priority Levels.
callbackPointer to the SYST Callback Function.
Note
Implemented as a function call.