Skip to content

Commit

Permalink
test of RP2040 and PSoC4 with RadioLib [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Jun 24, 2024
1 parent a68ab0d commit e21c969
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions software/firmware/source/SoftRF/src/platform/PSoC4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ static void PSoC4_setup()

pinMode(SOC_GPIO_PIN_GNSS_PWR, OUTPUT);
digitalWrite(SOC_GPIO_PIN_GNSS_PWR, LOW);

#if defined(USE_RADIOLIB)
lmic_pins.dio[0] = SOC_GPIO_PIN_DIO1;
#endif /* USE_RADIOLIB */
} else {
PSoC4_board = (SoC->getChipId() == 0x9b531416) ? PSOC4_AITHINKER_RA_07H : PSOC4_EBYTE_E78;

Expand Down
1 change: 1 addition & 0 deletions software/firmware/source/SoftRF/src/platform/PSoC4.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ extern softSerial swSer;

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

#define USE_TIME_SLOTS

Expand Down
4 changes: 4 additions & 0 deletions software/firmware/source/SoftRF/src/platform/RP2040.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ static void RP2040_setup()
pinMode(SOC_GPIO_PIN_GNSS_RST, INPUT_PULLUP); // RAK5005-O 3V3_S PWR_EN
#endif

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

#if SOC_GPIO_PIN_ANT_RXTX != SOC_UNUSED_PIN
pinMode(SOC_GPIO_PIN_ANT_RXTX, OUTPUT);
digitalWrite(SOC_GPIO_PIN_ANT_RXTX, HIGH);
Expand Down
1 change: 1 addition & 0 deletions software/firmware/source/SoftRF/src/platform/RP2040.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ struct rst_info {
#endif /* ARDUINO_ARCH_MBED */

#define USE_BASICMAC
//#define USE_RADIOLIB

#define USE_TIME_SLOTS

Expand Down

0 comments on commit e21c969

Please sign in to comment.