Skip to content

Commit

Permalink
Add SX1280 driver and split driver in three parts
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobeva committed Feb 9, 2024
1 parent 252b11a commit 78a02c5
Show file tree
Hide file tree
Showing 11 changed files with 2,871 additions and 1,615 deletions.
17 changes: 11 additions & 6 deletions Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,9 @@
#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 MODEM SX1280

#define CONFIG_UART_BUFFER_SIZE 6144
#define CONFIG_QUEUE_SIZE 6144
Expand All @@ -325,14 +326,14 @@
#define EEPROM_OFFSET EEPROM_SIZE+0xED000-EEPROM_RESERVED

// following pins are for the sx1262
const int pin_rxen = 37;
/*const int pin_rxen = 37;
const int pin_reset = 38;
const int pin_cs = 42;
const int pin_sclk = 43;
const int pin_mosi = 44;
const int pin_miso = 45;
const int pin_busy = 46;
const int pin_dio = 47;
const int pin_dio = 47;*/
const int pin_led_rx = LED_BLUE;
const int pin_led_tx = LED_GREEN;
const int pin_tcxo_enable = -1;
Expand All @@ -351,12 +352,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 78a02c5

Please sign in to comment.