Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion variants/stm32/CDEBYTE_E77-MBL/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ build_flags =
-DPIN_SERIAL1_RX=PB7
-DPIN_SERIAL1_TX=PB6
-DMESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
-DMESHTASTIC_EXCLUDE_AIR_QUALITY_SENSOR=1
-DMESHTASTIC_EXCLUDE_I2C=1
-DMESHTASTIC_EXCLUDE_GPS=1
build_unflags =
Expand Down
5 changes: 5 additions & 0 deletions variants/stm32/CDEBYTE_E77-MBL/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ Do not expect a working Meshtastic device with this target.

#define EBYTE_E77_MBL

// From EBYTE reference firmware:
// https://www.cdebyte.com/products/E77-900M22S/4#Downloads
#define HAS_LSE 1
#define STM32WL_LSE_DRIVE RCC_LSEDRIVE_LOW

// LoRa
// Hardware varies by unit: SN >= 3202995 has a TCXO, older units have XTAL only -
// https://github.com/olliw42/mLRS-docu/blob/main/docs/EBYTE_E77_MBL.md
Expand Down
1 change: 0 additions & 1 deletion variants/stm32/milesight_gs301/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ build_flags =
-DMESHTASTIC_EXCLUDE_GPS=1
-DMESHTASTIC_EXCLUDE_I2C=1 # Analog ADuCM355 (unsupported) so no point building support for I2C in
-DMESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
-DMESHTASTIC_EXCLUDE_AIR_QUALITY_SENSOR=1
build_unflags =
-DDEBUG_MUTE # We have space for debug output until sensor support is added
build_src_filter =
Expand Down
4 changes: 4 additions & 0 deletions variants/stm32/milesight_gs301/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@
// https://github.com/stm32duino/Arduino_Core_STM32/blob/main/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_RAK3172_MODULE.h
#define RAK3172

// From Ghidra decompilation of the GS301 factory firmware
#define HAS_LSE 1
#define STM32WL_LSE_DRIVE RCC_LSEDRIVE_LOW

#endif
7 changes: 0 additions & 7 deletions variants/stm32/nucleo_wl55jc/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,4 @@ build_flags =
-DHAS_GPS=1
-DGPS_SERIAL_PORT=Serial2 ; Default Serial object is used for onboard ST-Link VCP
-DHAS_SENSOR=1
lib_deps =
${stm32_base.lib_deps}
# renovate: datasource=github-tags depName=STM32RTC packageName=stm32duino/STM32RTC
https://github.com/stm32duino/STM32RTC/archive/refs/tags/1.9.0.zip
# renovate: datasource=github-tags depName=STM32LowPower packageName=stm32duino/STM32LowPower
https://github.com/stm32duino/STM32LowPower/archive/refs/tags/1.5.0.zip

upload_port = stlink
8 changes: 0 additions & 8 deletions variants/stm32/rak3172/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@ build_flags =
-DPIN_WIRE_SDA=PA11
-DPIN_WIRE_SCL=PA12
-DMESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR=1
-DMESHTASTIC_EXCLUDE_AIR_QUALITY_SENSOR=1
-DMESHTASTIC_EXCLUDE_I2C=1
-DMESHTASTIC_EXCLUDE_GPS=1
build_unflags =
${arduino_base.build_unflags}
-DMESHTASTIC_EXCLUDE_XEDDSA=1

lib_deps =
${stm32_base.lib_deps}
# renovate: datasource=github-tags depName=STM32RTC packageName=stm32duino/STM32RTC
https://github.com/stm32duino/STM32RTC/archive/refs/tags/1.9.0.zip
# renovate: datasource=github-tags depName=STM32LowPower packageName=stm32duino/STM32LowPower
https://github.com/stm32duino/STM32LowPower/archive/refs/tags/1.5.0.zip

upload_port = stlink
1 change: 0 additions & 1 deletion variants/stm32/russell/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ build_flags =
${stm32_base.build_flags}
-Ivariants/stm32/russell
-DPRIVATE_HW
-DMESHTASTIC_EXCLUDE_AIR_QUALITY_SENSOR=1
-DMESHTASTIC_EXCLUDE_DETECTIONSENSOR=1
-DMESHTASTIC_EXCLUDE_EXTERNALNOTIFICATION=1
-DMESHTASTIC_EXCLUDE_POWERSTRESS=1
Expand Down
4 changes: 4 additions & 0 deletions variants/stm32/russell/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ Sample OCV curve for Li-SOCl2 primary lithium cells (e.g. Saft cells have fresh
// https://github.com/stm32duino/Arduino_Core_STM32/blob/main/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_RAK3172_MODULE.h
#define RAK3172

// RAK3172 module
#define HAS_LSE 1
#define STM32WL_LSE_DRIVE RCC_LSEDRIVE_LOW

#endif
5 changes: 5 additions & 0 deletions variants/stm32/stm32.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ build_flags =
-DMESHTASTIC_EXCLUDE_PKT_HISTORY_HASH=1
-DMESHTASTIC_EXCLUDE_POWERMON=1
-DMESHTASTIC_EXCLUDE_POWER_TELEMETRY=1
-DMESHTASTIC_EXCLUDE_AIR_QUALITY_SENSOR=1
-DMESHTASTIC_EXCLUDE_RTTTL=1 ; No PWM/RTTTL ringtone playback support on this platform.
-DMESHTASTIC_EXCLUDE_SCREEN=1
-DMESHTASTIC_EXCLUDE_TZ=1 ; Exclude TZ to save some flash space.
Expand Down Expand Up @@ -61,6 +62,10 @@ lib_deps =
${radiolib_base.lib_deps}
# renovate: datasource=git-refs depName=meshtastic/Crypto packageName=https://github.com/meshtastic/Crypto gitBranch=main
https://github.com/meshtastic/Crypto/archive/591ff9a690e8168ccb7a36abde8d7783e448d395.zip
# renovate: datasource=github-tags depName=STM32RTC packageName=stm32duino/STM32RTC
https://github.com/stm32duino/STM32RTC/archive/refs/tags/1.9.0.zip
# renovate: datasource=github-tags depName=STM32LowPower packageName=stm32duino/STM32LowPower
https://github.com/stm32duino/STM32LowPower/archive/refs/tags/1.5.0.zip

lib_ignore =
OneButton
Expand Down
1 change: 0 additions & 1 deletion variants/stm32/wio-e5/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ build_flags =
-DPIN_SERIAL2_RX=PA3
-DHAS_GPS=1
-DGPS_SERIAL_PORT=Serial2
-DMESHTASTIC_EXCLUDE_AIR_QUALITY_SENSOR=1

upload_port = stlink
5 changes: 5 additions & 0 deletions variants/stm32/wio-e5/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ Do not expect a working Meshtastic device with this target.

#define WIO_E5

// From Seeed reference firmware:
// https://github.com/Seeed-Studio/LoRaWan-E5-Node/blob/main/Projects/Applications/LoRaWAN/LoRaWAN_End_Node/Core/Src/main.c
#define HAS_LSE 1
#define STM32WL_LSE_DRIVE RCC_LSEDRIVE_LOW

// LoRa
// https://github.com/Seeed-Studio/LoRaWan-E5-Node/blob/163c05379b1805dd8f2c061d4557a69985acc953/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.c#L94
#define SX126X_DIO3_TCXO_VOLTAGE 1.7
Expand Down
Loading