MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
Creating Configuration Structure

Overview

The peripheral configuration structures are processed by the respective peripheral initialization functions. Variety of default configuration structures have been created for each on-chip peripheral to define its behavior after software initialization. If set of default configuration structures doesn't meet application requirements a new configuration structure can be created by copy and paste the default configuration structure into appconfig.h, renaming it and updating peripheral characteristics by applying SET or CLR macro on each register field. Such new configuration structure can be passed as an input argument to the respective on-chip peripheral initialization function.

Macros

#define SET(mask)
 Sets register field in peripheral configuration structure. More...
 
#define CLR(mask)
 Clears register field in peripheral configuration structure. More...
 

Macro Definition Documentation

#define SET (   mask)

This macro sets register field mask in the peripheral configuration structure.

Parameters
maskRegister field to be set.
Note
Implemented as an inline macro.
#define CLR (   mask)

This macro clears register field mask in the peripheral configuration structure.

Parameters
maskRegister field to be cleared.
Note
Implemented as an inline macro.