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.
|
#define | SET(mask) |
| Sets register field in peripheral configuration structure. More...
|
|
#define | CLR(mask) |
| Clears register field in peripheral configuration structure. More...
|
|
This macro sets register field mask
in the peripheral configuration structure.
- Parameters
-
mask | Register field to be set. |
- Note
- Implemented as an inline macro.
This macro clears register field mask
in the peripheral configuration structure.
- Parameters
-
mask | Register field to be cleared. |
- Note
- Implemented as an inline macro.