Browse Source

Enable use of SERIAL_PORT_2 on HAL_STM32 (#12197)

Karl Andersson 5 years ago
parent
commit
aa72884a6e

+ 2
- 0
Marlin/src/HAL/HAL_STM32/HAL.cpp View File

@@ -29,6 +29,8 @@
29 29
 
30 30
 #include "HAL.h"
31 31
 
32
+#include "../../inc/MarlinConfig.h"
33
+
32 34
 #if ENABLED(EEPROM_EMULATED_WITH_SRAM)
33 35
   #if STM32F7xx
34 36
     #include "stm32f7xx_ll_pwr.h"

+ 1
- 0
Marlin/src/HAL/HAL_STM32/HAL.h View File

@@ -41,6 +41,7 @@
41 41
   #include <USBSerial.h>
42 42
 #endif
43 43
 
44
+#include "../../inc/MarlinConfigPre.h"
44 45
 #include "../shared/math_32bit.h"
45 46
 #include "../shared/HAL_SPI.h"
46 47
 #include "fastio_STM32.h"

+ 0
- 2
Marlin/src/HAL/HAL_STM32/watchdog_STM32.h View File

@@ -21,7 +21,5 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#include "../../inc/MarlinConfig.h"
25
-
26 24
 void watchdog_init();
27 25
 void watchdog_reset();

Loading…
Cancel
Save