Skip to content

Commit

Permalink
[RA4M1] build with LR11XX driver
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Dec 11, 2024
1 parent dab68bf commit 60a874a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion software/firmware/source/SoftRF/src/platform/RA4M1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ lmic_pinmap lmic_pins = {
.rxe = LMIC_UNUSED_PIN,
.rst = SOC_GPIO_PIN_RST,
.dio = {LMIC_UNUSED_PIN, LMIC_UNUSED_PIN, LMIC_UNUSED_PIN},
.busy = LMIC_UNUSED_PIN,
.busy = SOC_GPIO_PIN_BUSY,
.tcxo = LMIC_UNUSED_PIN,
};

Expand Down Expand Up @@ -132,6 +132,10 @@ static void RA4M1_setup()
reset_info.reason = REASON_EXT_SYS_RST;
}

#if defined(USE_RADIOLIB)
lmic_pins.dio[0] = SOC_GPIO_PIN_DIO1;
#endif /* USE_RADIOLIB */

#if SOC_GPIO_RADIO_LED_TX != SOC_UNUSED_PIN
pinMode(SOC_GPIO_RADIO_LED_TX, OUTPUT);
digitalWrite(SOC_GPIO_RADIO_LED_TX, ! LED_STATE_ON);
Expand Down
5 changes: 4 additions & 1 deletion software/firmware/source/SoftRF/src/platform/RA4M1.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ extern SoftSPI RadioSPI;

/* SX1276 */
#define SOC_GPIO_PIN_RST PIN_D9
#define SOC_GPIO_PIN_BUSY SOC_UNUSED_PIN
#define SOC_GPIO_PIN_BUSY LMIC_UNUSED_PIN
#define SOC_GPIO_PIN_DIO1 PIN_D6

/* RF antenna switch */
Expand Down Expand Up @@ -206,6 +206,9 @@ extern SoftSPI RadioSPI;

//#define USE_BASICMAC
//#define EXCLUDE_SX1276 // - 3 kb
#if defined(ARDUINO_UNOR4_MINIMA)
#define USE_RADIOLIB
#endif /* ARDUINO_UNOR4_MINIMA */

#if defined(EXCLUDE_WIFI)
#define USE_OLED /* -1.5K HEAP */
Expand Down

0 comments on commit 60a874a

Please sign in to comment.