Skip to content

Commit

Permalink
Merge pull request #64 from jacobeva/master
Browse files Browse the repository at this point in the history
Add SX1280 driver and split LoRa driver in 3 parts
  • Loading branch information
markqvist authored Feb 10, 2024
2 parents 252b11a + a179304 commit d63c924
Show file tree
Hide file tree
Showing 12 changed files with 2,867 additions and 1,615 deletions.
2 changes: 1 addition & 1 deletion Boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
#define MODEM SX1276
#endif

#endif
#endif
13 changes: 8 additions & 5 deletions Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,8 @@
#define HAS_NP false
#define HAS_SD false
#define HAS_TCXO true
#define HAS_RXEN_BUSY true
#define MODEM SX1262

#define HAS_RF_SWITCH_RX_TX true
#define HAS_BUSY true
#define CONFIG_UART_BUFFER_SIZE 6144
#define CONFIG_QUEUE_SIZE 6144
#define CONFIG_QUEUE_MAX_LENGTH 200
Expand Down Expand Up @@ -351,12 +350,16 @@

#define eeprom_addr(a) (a+EEPROM_OFFSET)

#ifndef HAS_RXEN_BUSY
#ifndef HAS_RF_SWITCH_RX_TX
const int pin_rxen = -1;
const int pin_txen = -1;
#endif

#ifndef HAS_BUSY
const int pin_busy = -1;
#endif

#if MODEM == SX1262 && defined(NRF52840_XXAA)
#if (MODEM == SX1262 || MODEM == SX1280) && defined(NRF52840_XXAA)
SPIClass spiModem(NRF_SPIM2, pin_miso, pin_sclk, pin_mosi);
#endif

Expand Down
Loading

0 comments on commit d63c924

Please sign in to comment.