Browse Source

Fix STM32 compilation with PlatformIO (#10245)

Alexey Shvetsov 7 years ago
parent
commit
cbdc78ec0f

+ 1
- 1
Marlin/src/HAL/HAL_STM32F1/HAL_spi_Stm32f1.cpp View File

41
 #include "pins_arduino.h"
41
 #include "pins_arduino.h"
42
 #include "spi_pins.h"
42
 #include "spi_pins.h"
43
 #include "../../core/macros.h"
43
 #include "../../core/macros.h"
44
-#include <spi.h>
44
+#include <SPI.h>
45
 
45
 
46
 // --------------------------------------------------------------------------
46
 // --------------------------------------------------------------------------
47
 // Public Variables
47
 // Public Variables

+ 2
- 2
Marlin/src/config/examples/stm32f103ret6/Configuration.h View File

1159
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
1159
 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
1160
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
1160
 // M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.
1161
 //
1161
 //
1162
-#define EEPROM_SETTINGS // Enable for M500 and M501 commands
1162
+//#define EEPROM_SETTINGS // Enable for M500 and M501 commands
1163
 //#define DISABLE_M503    // Saves ~2700 bytes of PROGMEM. Disable for release!
1163
 //#define DISABLE_M503    // Saves ~2700 bytes of PROGMEM. Disable for release!
1164
 //#define EEPROM_CHITCHAT   // Give feedback on EEPROM commands. Disable to save PROGMEM.
1164
 //#define EEPROM_CHITCHAT   // Give feedback on EEPROM commands. Disable to save PROGMEM.
1165
 
1165
 
1176
 //
1176
 //
1177
 // M100 Free Memory Watcher
1177
 // M100 Free Memory Watcher
1178
 //
1178
 //
1179
-#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
1179
+//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose
1180
 
1180
 
1181
 //
1181
 //
1182
 // G20/G21 Inch mode support
1182
 // G20/G21 Inch mode support

+ 9
- 0
platformio.ini View File

235
 build_flags  = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
235
 build_flags  = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
236
   ${common.build_flags}
236
   ${common.build_flags}
237
 lib_deps     = ${common.lib_deps}
237
 lib_deps     = ${common.lib_deps}
238
+lib_ignore   = U8glib-HAL
239
+  c1921b4
240
+  libf3c
241
+  lib066
242
+  Adafruit NeoPixel_ID28
243
+  Adafruit NeoPixel
244
+  libf3e
245
+  TMC26XStepper
246
+lib_ldf_mode = 1
238
 src_filter   = ${common.default_src_filter}
247
 src_filter   = ${common.default_src_filter}
239
 monitor_baud = 250000
248
 monitor_baud = 250000
240
 
249
 

Loading…
Cancel
Save