Download Print this page

Infineon SPI DMA 1 Manual page 6

Spi data communication via dma, aurix tc2xx microcontroller training

Advertisement

Implementation
Configuring the SPI communication
The configuration of the SPI communication is done through the function initQSPI() in two
different steps:
QSPI Slave initialization
QSPI Master initialization
QSPI Slave initialization
The initialization of the QSPI slave module is done by defining an instance of the
IfxQspi_SpiSlave_Config structure
The structure is filled with default values by the function
IfxQspi_SpiSlave_initModuleConfig()
Afterwards, the following parameters are modified to enable the DMA usage, set its
channels, interrupt priorities and IO port pins:
DMA configuration: dma.useDma, dma.txDmaChannelId, dma.rxDmaChannelId
Interrupts configuration: base.txPriority, base.rxPriority, base.erPriority,
base.isrProvider
Pins configuration: pins
2020-01-17
Copyright © Infineon Technologies AG 2020. All rights reserved.
6

Advertisement

loading