Skip to content

Commit

Permalink
[AVR] build with LR11XX driver [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Dec 11, 2024
1 parent f8dccec commit 72aa345
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion software/firmware/source/SoftRF/src/platform/AVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,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 @@ -80,6 +80,10 @@ static void AVR_setup()
}

Serial.begin(SERIAL_OUT_BR, SERIAL_OUT_BITS);

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

static void AVR_post_init()
Expand Down
6 changes: 5 additions & 1 deletion software/firmware/source/SoftRF/src/platform/AVR.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct rst_info {

/* SX1276 */
#define SOC_GPIO_PIN_RST 9 // PH6
#define SOC_GPIO_PIN_BUSY SOC_UNUSED_PIN
#define SOC_GPIO_PIN_BUSY LMIC_UNUSED_PIN
#define SOC_GPIO_PIN_DIO1 6 // PH3

/* RF antenna switch */
Expand Down Expand Up @@ -160,6 +160,10 @@ struct rst_info {
//#define EXCLUDE_SOUND
#define EXCLUDE_IMU

//#define USE_BASICMAC
//#define EXCLUDE_SX1276 // - 3 kb
//#define USE_RADIOLIB

//#define USE_OLED // kb
#define EXCLUDE_OLED_049
//#define EXCLUDE_OLED_BARO_PAGE
Expand Down

0 comments on commit 72aa345

Please sign in to comment.