This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

咨询一下关于SPI中断的问题



基本设置如下:

想问下中断处理函数SpiIntHandler什么时候触发,

每次SPI接收到数据时,还是SPI的FIFO数据达到8个时,还是DMA从SPI读取到TOTAL_DMA_ELEMENTS个数据时?

SPIIntRegister(ulBase,SpiIntHandler);

UDMASetupTransfer(UDMA_CH30_GSPI_RX,  ,TOTAL_DMA_ELEMENTS,  ); 

SPIFIFOLevelSet(ulBase,8,8);

SPIDmaEnable(ulBase,SPI_RX_DMA);
MAP_SPIIntEnable(ulBase,SPI_INT_DMARX);