Skip to content

Commit

Permalink
Update tft_fsmc.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jmz52 committed Jan 24, 2023
1 parent 3ff051c commit 1940418
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Marlin/src/HAL/STM32/tft/tft_fsmc.cpp
Expand Up @@ -100,11 +100,11 @@ void TFT_FSMC::Init() {

HAL_SRAM_Init(&SRAMx, &Timing, &ExtTiming);

__HAL_RCC_DMA2_CLK_ENABLE();

#ifdef STM32F1xx
DMAtx.Instance = DMA2_Channel1;
__HAL_RCC_DMA1_CLK_ENABLE();
DMAtx.Instance = DMA1_Channel1;
#elif defined(STM32F4xx)
__HAL_RCC_DMA2_CLK_ENABLE();
DMAtx.Instance = DMA2_Stream0;
DMAtx.Init.Channel = DMA_CHANNEL_0;
DMAtx.Init.FIFOMode = DMA_FIFOMODE_ENABLE;
Expand Down

0 comments on commit 1940418

Please sign in to comment.