mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 02:45:41 +00:00
STM32 PlatformIO cleanup (#7339)
This commit is contained in:
parent
8f10de5684
commit
5776385e8c
@ -26,11 +26,17 @@ build_flags =
|
|||||||
-DMESHTASTIC_EXCLUDE_WIFI=1
|
-DMESHTASTIC_EXCLUDE_WIFI=1
|
||||||
-DMESHTASTIC_EXCLUDE_TZ=1 ; Exclude TZ to save some flash space.
|
-DMESHTASTIC_EXCLUDE_TZ=1 ; Exclude TZ to save some flash space.
|
||||||
-DSERIAL_RX_BUFFER_SIZE=256 ; For GPS - the default of 64 is too small.
|
-DSERIAL_RX_BUFFER_SIZE=256 ; For GPS - the default of 64 is too small.
|
||||||
|
-DHAS_SCREEN=0 ; Always disable screen for STM32, it is not supported.
|
||||||
-DPIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF ; This is REQUIRED for at least traceroute debug prints - without it the length ends up uninitialized.
|
-DPIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF ; This is REQUIRED for at least traceroute debug prints - without it the length ends up uninitialized.
|
||||||
-DDEBUG_MUTE ; You can #undef DEBUG_MUTE in certain source files if you need the logs.
|
-DDEBUG_MUTE ; You can #undef DEBUG_MUTE in certain source files if you need the logs.
|
||||||
-fmerge-all-constants
|
-fmerge-all-constants
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
|
-DRADIOLIB_EXCLUDE_SX128X=1
|
||||||
|
-DRADIOLIB_EXCLUDE_SX127X=1
|
||||||
|
-DRADIOLIB_EXCLUDE_LR11X0=1
|
||||||
|
-DHAL_DAC_MODULE_ONLY
|
||||||
|
-DHAL_RNG_MODULE_ENABLED
|
||||||
|
|
||||||
build_src_filter =
|
build_src_filter =
|
||||||
${arduino_base.build_src_filter} -<platform/esp32/> -<nimble/> -<mesh/api/> -<mesh/wifi/> -<mesh/http/> -<modules/esp32> -<mesh/eth/> -<input> -<buzz> -<modules/RemoteHardwareModule.cpp> -<platform/nrf52> -<platform/portduino> -<platform/rp2xx0> -<mesh/raspihttp>
|
${arduino_base.build_src_filter} -<platform/esp32/> -<nimble/> -<mesh/api/> -<mesh/wifi/> -<mesh/http/> -<modules/esp32> -<mesh/eth/> -<input> -<buzz> -<modules/RemoteHardwareModule.cpp> -<platform/nrf52> -<platform/portduino> -<platform/rp2xx0> -<mesh/raspihttp>
|
||||||
|
@ -9,19 +9,9 @@ build_flags =
|
|||||||
-DSERIAL_UART_INSTANCE=1
|
-DSERIAL_UART_INSTANCE=1
|
||||||
-DPIN_SERIAL_RX=PA3
|
-DPIN_SERIAL_RX=PA3
|
||||||
-DPIN_SERIAL_TX=PA2
|
-DPIN_SERIAL_TX=PA2
|
||||||
-DHAL_DAC_MODULE_ONLY
|
|
||||||
-DHAL_RNG_MODULE_ENABLED
|
|
||||||
-DRADIOLIB_EXCLUDE_SX128X=1
|
|
||||||
-DRADIOLIB_EXCLUDE_SX127X=1
|
|
||||||
-DRADIOLIB_EXCLUDE_LR11X0=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
|
-DMESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
|
||||||
-DMESHTASTIC_EXCLUDE_I2C=1
|
-DMESHTASTIC_EXCLUDE_I2C=1
|
||||||
-DMESHTASTIC_EXCLUDE_WIFI=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_BLUETOOTH=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_GPS=1
|
-DMESHTASTIC_EXCLUDE_GPS=1
|
||||||
-DMESHTASTIC_EXCLUDE_SCREEN=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_MQTT=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_POWERMON=1
|
|
||||||
;-DPIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
|
;-DPIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
|
||||||
;-DCFG_DEBUG
|
;-DCFG_DEBUG
|
||||||
|
|
||||||
|
@ -7,18 +7,8 @@ build_flags =
|
|||||||
-Ivariants/rak3172
|
-Ivariants/rak3172
|
||||||
-DPIN_WIRE_SDA=PA11
|
-DPIN_WIRE_SDA=PA11
|
||||||
-DPIN_WIRE_SCL=PA12
|
-DPIN_WIRE_SCL=PA12
|
||||||
-DHAL_DAC_MODULE_ONLY
|
|
||||||
-DHAL_RNG_MODULE_ENABLED
|
|
||||||
-DRADIOLIB_EXCLUDE_SX128X=1
|
|
||||||
-DRADIOLIB_EXCLUDE_SX127X=1
|
|
||||||
-DRADIOLIB_EXCLUDE_LR11X0=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
|
-DMESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
|
||||||
-DMESHTASTIC_EXCLUDE_I2C=1
|
-DMESHTASTIC_EXCLUDE_I2C=1
|
||||||
-DMESHTASTIC_EXCLUDE_WIFI=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_BLUETOOTH=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_GPS=1
|
-DMESHTASTIC_EXCLUDE_GPS=1
|
||||||
-DMESHTASTIC_EXCLUDE_SCREEN=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_MQTT=1
|
|
||||||
-DMESHTASTIC_EXCLUDE_POWERMON=1
|
|
||||||
;-DCFG_DEBUG
|
;-DCFG_DEBUG
|
||||||
upload_port = stlink
|
upload_port = stlink
|
||||||
|
@ -10,11 +10,6 @@ build_flags =
|
|||||||
-DPIN_SERIAL_TX=PB6
|
-DPIN_SERIAL_TX=PB6
|
||||||
-DPIN_WIRE_SDA=PA15
|
-DPIN_WIRE_SDA=PA15
|
||||||
-DPIN_WIRE_SCL=PB15
|
-DPIN_WIRE_SCL=PB15
|
||||||
-DHAL_DAC_MODULE_ONLY
|
|
||||||
-DHAL_RNG_MODULE_ENABLED
|
|
||||||
-DRADIOLIB_EXCLUDE_SX128X=1
|
|
||||||
-DRADIOLIB_EXCLUDE_SX127X=1
|
|
||||||
-DRADIOLIB_EXCLUDE_LR11X0=1
|
|
||||||
-DHAS_SENSOR=1
|
-DHAS_SENSOR=1
|
||||||
-DENABLE_HWSERIAL2
|
-DENABLE_HWSERIAL2
|
||||||
-DPIN_SERIAL2_TX=PA2
|
-DPIN_SERIAL2_TX=PA2
|
||||||
|
Loading…
Reference in New Issue
Block a user