Skip to content

Commit 4a3f69a

Browse files
committed
🐛 Keep DMA2_Channel1 for STM32F1xx
Followup to MarlinFirmware#27385
1 parent 4bf13be commit 4a3f69a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Marlin/src/HAL/STM32/tft/tft_fsmc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ void TFT_FSMC::init() {
111111

112112
HAL_SRAM_Init(&SRAMx, &timing, &extTiming);
113113

114+
__HAL_RCC_DMA2_CLK_ENABLE();
115+
114116
#ifdef STM32F1xx
115-
__HAL_RCC_DMA1_CLK_ENABLE();
116-
DMAtx.Instance = DMA1_Channel1;
117+
DMAtx.Instance = DMA2_Channel1;
117118
#elif defined(STM32F4xx)
118-
__HAL_RCC_DMA2_CLK_ENABLE();
119119
DMAtx.Instance = DMA2_Stream0;
120120
DMAtx.Init.Channel = DMA_CHANNEL_0;
121121
DMAtx.Init.FIFOMode = DMA_FIFOMODE_ENABLE;

0 commit comments

Comments
 (0)