Skip to content

Commit 1ecae13

Browse files
committed
[STM32] bring up of LilyGO T3-STM32 [skip ci]
1 parent 3310efb commit 1ecae13

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

software/firmware/source/SoftRF/hal_conf_extra.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,24 @@
8383
#endif /* SERIAL_UART_INSTANCE */
8484
#endif /* ARDUINO_GENERIC_WLE5CCUX */
8585

86+
#if defined(ARDUINO_GENERIC_WL55CCUX)
87+
88+
#ifndef HAL_SUBGHZ_MODULE_ENABLED
89+
#define HAL_SUBGHZ_MODULE_ENABLED
90+
#endif /* HAL_SUBGHZ_MODULE_ENABLED */
91+
92+
#if SERIAL_UART_INSTANCE == 101
93+
94+
#undef SERIAL_UART_INSTANCE
95+
#undef PIN_SERIAL_RX
96+
#undef PIN_SERIAL_TX
97+
98+
#define SERIAL_UART_INSTANCE 1
99+
#define PIN_SERIAL_RX PA10
100+
#define PIN_SERIAL_TX PA9
101+
#endif /* SERIAL_UART_INSTANCE */
102+
#endif /* ARDUINO_GENERIC_WL55CCUX */
103+
86104
#if defined(ENERGIA_ARCH_CC13XX)
87105

88106
/*

software/firmware/source/SoftRF/src/platform/STM32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ typedef struct stm32_backup_struct {
331331
#define UATSerial Serial
332332
#define SerialOutput Serial
333333

334-
#define SOC_ADC_VOLTAGE_DIV 2.3 // T3-STM32 has 100k/100k voltage divider
334+
#define SOC_ADC_VOLTAGE_DIV 2.0 // T3-STM32 has 100k/100k voltage divider
335335
#define VREFINT 1212 // mV, STM32WL55 datasheet value
336336

337337
#include "iomap/LilyGO_T3_STM32.h"

software/firmware/source/SoftRF/src/platform/iomap/LilyGO_T3_STM32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define SOC_GPIO_PIN_MOSI PA7 /* SPI1_MOSI */
2727
#define SOC_GPIO_PIN_MISO PA6 /* SPI1_MISO */
2828
#define SOC_GPIO_PIN_SCK PA5 /* SPI1_SCK */
29+
#define SOC_GPIO_PIN_SS SOC_GPIO_PIN_SD_SS
2930

3031
/* Micro-SD */
3132
#define SOC_GPIO_PIN_SD_SS PA4 /* SPI1_NSS */
@@ -35,7 +36,6 @@
3536
#define SOC_GPIO_PIN_OLED_DC PA8
3637

3738
/* SX1262 */
38-
#define SOC_GPIO_PIN_SS LMIC_UNUSED_PIN
3939
#define SOC_GPIO_PIN_RST LMIC_UNUSED_PIN
4040
#define SOC_GPIO_PIN_BUSY LMIC_UNUSED_PIN
4141
#define SOC_GPIO_PIN_DIO0 LMIC_UNUSED_PIN

0 commit comments

Comments
 (0)