mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-03 20:54:42 +02:00
Add #1970 update
This commit is contained in:
@@ -598,6 +598,8 @@ bool TFT_eSPI::initDMA(bool ctrl_cs)
|
||||
HAL_NVIC_EnableIRQ(DMA2_Stream3_IRQn); // Enable DMA end interrupt handler
|
||||
#elif (TFT_SPI_PORT == 2)
|
||||
HAL_NVIC_EnableIRQ(DMA1_Stream4_IRQn); // Enable DMA end interrupt handler
|
||||
#elif (TFT_SPI_PORT == 3)
|
||||
HAL_NVIC_EnableIRQ(DMA1_Stream5_IRQn);
|
||||
#endif
|
||||
|
||||
__HAL_LINKDMA(&spiHal, hdmatx, dmaHal); // Attach DMA engine to SPI peripheral
|
||||
|
Reference in New Issue
Block a user