![]() |
MKM34Z256VLx7 Bare Metal Software Drivers
R4.1.6
Reference Manual
|
This section describes functions and macros of the driver's API.
Macros | |
#define | XBAR_Path(inp, outmask) |
Sets XBAR output channels. More... | |
#define | XBAR_EnableDMA(outmask) |
Enables DMA for XBAR_DMA output. More... | |
#define | XBAR_Init(cfg0, cfg1, cfg2, cfg3, ip, callback) |
XBAR initialization. More... | |
#define XBAR_Path | ( | inp, | |
outmask | |||
) |
This macro routes one of the following input channels XBAR Input Channels to one or more the following XBAR Output Channels.
inp | Select one of the XBAR Input Channels. |
outmask | Select one or more OR'ed XBAR Output Channels. |
#define XBAR_EnableDMA | ( | outmask | ) |
This macro enables the DMA function for XBAR_DMA output. Macros sets DEN (DMA enable bit) and clears IEN (interrupt enable bit) for selected outputs.
outmask | Select one or more OR'ed XBAR_DMA XBAR Output Channels. |
#define XBAR_Init | ( | cfg0, | |
cfg1, | |||
cfg2, | |||
cfg3, | |||
ip, | |||
callback | |||
) |
This function initializes Inter-Peripheral Crossbar Switch (XBAR) block. It also installs callback function for interrupt vector 47.
cfg0 | Select one of the XBAR Configuration Structures for CH0. |
cfg1 | Select one of the XBAR Configuration Structures for CH1. |
cfg2 | Select one of the XBAR Configuration Structures for CH2. |
cfg3 | Select one of the XBAR Configuration Structures for CH3. |
ip | Select one of the ARM Cortex-M0+ Interrupt Priority Levels. |
callback | Pointer to the XBAR Callback Function. |