Browse Source

Enable use of SERIAL_PORT_2 on HAL_STM32 (#12197)

Karl Andersson 6 years ago
parent
commit
aa72884a6e

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

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

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

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

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

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

Loading…
Cancel
Save