mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-21 01:04:01 +00:00
Merge pull request #6209 from markbirss/stm32wl-fs
[STM32] RAK3172 enable LED, enable serial debug (was mute), fix radio init and update platformio and variant
This commit is contained in:
commit
9a5297b979
@ -20,7 +20,7 @@ build_flags =
|
|||||||
-DMESHTASTIC_EXCLUDE_MQTT
|
-DMESHTASTIC_EXCLUDE_MQTT
|
||||||
-DMESHTASTIC_EXCLUDE_BLUETOOTH
|
-DMESHTASTIC_EXCLUDE_BLUETOOTH
|
||||||
-DMESHTASTIC_EXCLUDE_GPS
|
-DMESHTASTIC_EXCLUDE_GPS
|
||||||
-DDEBUG_MUTE
|
;-DDEBUG_MUTE
|
||||||
-fmerge-all-constants
|
-fmerge-all-constants
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
|
@ -19,7 +19,9 @@ bool STM32WLE5JCInterface::init()
|
|||||||
RadioLibInterface::init();
|
RadioLibInterface::init();
|
||||||
|
|
||||||
// https://github.com/Seeed-Studio/LoRaWan-E5-Node/blob/main/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.c
|
// https://github.com/Seeed-Studio/LoRaWan-E5-Node/blob/main/Middlewares/Third_Party/SubGHz_Phy/stm32_radio_driver/radio_driver.c
|
||||||
|
#if (!defined(_VARIANT_RAK3172_))
|
||||||
setTCXOVoltage(1.7);
|
setTCXOVoltage(1.7);
|
||||||
|
#endif
|
||||||
|
|
||||||
lora.setRfSwitchTable(rfswitch_pins, rfswitch_table);
|
lora.setRfSwitchTable(rfswitch_pins, rfswitch_table);
|
||||||
|
|
||||||
|
@ -5,9 +5,6 @@ board_upload.maximum_size = 233472 ; reserve the last 28KB for filesystem
|
|||||||
build_flags =
|
build_flags =
|
||||||
${stm32_base.build_flags}
|
${stm32_base.build_flags}
|
||||||
-Ivariants/rak3172
|
-Ivariants/rak3172
|
||||||
-DSERIAL_UART_INSTANCE=1
|
|
||||||
-DPIN_SERIAL_RX=PB7
|
|
||||||
-DPIN_SERIAL_TX=PB6
|
|
||||||
-DHAL_DAC_MODULE_ONLY
|
-DHAL_DAC_MODULE_ONLY
|
||||||
-DHAL_RNG_MODULE_ENABLED
|
-DHAL_RNG_MODULE_ENABLED
|
||||||
-DRADIOLIB_EXCLUDE_SX128X=1
|
-DRADIOLIB_EXCLUDE_SX128X=1
|
||||||
@ -23,5 +20,4 @@ build_flags =
|
|||||||
-DMESHTASTIC_EXCLUDE_POWERMON=1
|
-DMESHTASTIC_EXCLUDE_POWERMON=1
|
||||||
;-DPIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
|
;-DPIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
|
||||||
;-DCFG_DEBUG
|
;-DCFG_DEBUG
|
||||||
|
|
||||||
upload_port = stlink
|
upload_port = stlink
|
@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
STM32WLE5 Core Module for LoRaWAN® RAK3372
|
||||||
|
https://store.rakwireless.com/products/wisblock-core-module-rak3372
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This variant is a work in progress.
|
This variant is a work in progress.
|
||||||
Do not expect a working Meshtastic device with this target.
|
Do not expect a working Meshtastic device with this target.
|
||||||
@ -9,4 +14,7 @@ Do not expect a working Meshtastic device with this target.
|
|||||||
#define USE_STM32WLx
|
#define USE_STM32WLx
|
||||||
#define MAX_NUM_NODES 10
|
#define MAX_NUM_NODES 10
|
||||||
|
|
||||||
|
#define LED_PIN PA0 // Green LED
|
||||||
|
#define LED_STATE_ON 1
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user