Unverified Commit a4e94634 authored by Bodmer's avatar Bodmer Committed by GitHub

Update TFT_eSPI_STM32.c

parent 16eefd6a
...@@ -594,8 +594,10 @@ bool TFT_eSPI::initDMA(bool ctrl_cs) ...@@ -594,8 +594,10 @@ bool TFT_eSPI::initDMA(bool ctrl_cs)
** Function name: initDMA ** Function name: initDMA
** Description: Initialise the DMA engine - returns true if init OK ** Description: Initialise the DMA engine - returns true if init OK
***************************************************************************************/ ***************************************************************************************/
bool TFT_eSPI::initDMA(void) bool TFT_eSPI::initDMA(bool ctrl_cs)
{ {
ctrl_cs = ctrl_cs; // Not used for STM32, so stop compiler warning
__HAL_RCC_DMA1_CLK_ENABLE(); // Enable DMA1 clock __HAL_RCC_DMA1_CLK_ENABLE(); // Enable DMA1 clock
dmaHal.Init.Mode = DMA_NORMAL; //DMA_CIRCULAR; // // Normal = send buffer once dmaHal.Init.Mode = DMA_NORMAL; //DMA_CIRCULAR; // // Normal = send buffer once
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment