Skip to content

Commit

Permalink
[ESP32-C3] build with LR11XX driver
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Jan 2, 2025
1 parent a05edaa commit dff7e42
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions software/firmware/source/SoftRF/src/platform/ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,9 @@ static void ESP32_setup()
lmic_pins.nss = SOC_GPIO_PIN_C3_SS;
lmic_pins.rst = SOC_GPIO_PIN_C3_RST;
lmic_pins.busy = SOC_GPIO_PIN_C3_TXE;
#if defined(USE_RADIOLIB)
lmic_pins.dio[0] = SOC_GPIO_PIN_C3_CE; /* Ebyte E80 */
#endif /* USE_RADIOLIB */

#endif /* CONFIG_IDF_TARGET_ESP32C3 */

Expand Down
17 changes: 9 additions & 8 deletions software/firmware/source/SoftRF/src/platform/ESP32.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,15 @@ struct rst_info {
#define USE_TFT
#define USE_NMEA_CFG
#define USE_BASICMAC
#if defined(CONFIG_IDF_TARGET_ESP32S3)
#define USE_RADIOLIB
#elif defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32C6)
#if ARDUINO_USB_CDC_ON_BOOT
//#define USE_RADIOLIB
#else
#define USE_RADIOLIB
#endif /* ARDUINO_USB_CDC_ON_BOOT */
#endif /* S3 C3 C6 */

#define USE_TIME_SLOTS

Expand Down Expand Up @@ -449,13 +458,6 @@ extern const USB_Device_List_t supported_USB_devices[];
#undef ENABLE_PROL
//#define USE_NIMBLE
#define USE_ARDUINOBLE
#if defined(CONFIG_IDF_TARGET_ESP32C6)
#if ARDUINO_USB_CDC_ON_BOOT
//#define USE_RADIOLIB
#else
#define USE_RADIOLIB
#endif /* ARDUINO_USB_CDC_ON_BOOT */
#endif /* C6 */
#endif /* C2 || C6 || H2 */
#endif /* SX || CX || H2 */
#endif /* CONFIG_IDF_TARGET_ESP32 */
Expand All @@ -466,7 +468,6 @@ extern const USB_Device_List_t supported_USB_devices[];
#define USE_SA8X8
/* Experimental */
#define ENABLE_REMOTE_ID
#define USE_RADIOLIB
//#define EXCLUDE_VOICE_MESSAGE
//#define USE_ARDUINOBLE
//#undef USE_BLE_MIDI
Expand Down

0 comments on commit dff7e42

Please sign in to comment.