sforkowany z mirror/meshtastic-firmware
Fix radio module declaration for `NRF52_SERIES` in `variant.h`-files
rodzic
83eb94126b
commit
76791220b9
|
@ -151,6 +151,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// RAK4630 LoRa module
|
// RAK4630 LoRa module
|
||||||
|
#define USE_SX1262
|
||||||
#define SX126X_CS (42)
|
#define SX126X_CS (42)
|
||||||
#define SX126X_DIO1 (47)
|
#define SX126X_DIO1 (47)
|
||||||
#define SX126X_BUSY (46)
|
#define SX126X_BUSY (46)
|
||||||
|
|
|
@ -178,6 +178,7 @@ External serial flash WP25R1635FZUIL0
|
||||||
* Lora radio
|
* Lora radio
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define USE_SX1262
|
||||||
#define SX126X_CS (0 + 24) // FIXME - we really should define LORA_CS instead
|
#define SX126X_CS (0 + 24) // FIXME - we really should define LORA_CS instead
|
||||||
#define SX126X_DIO1 (0 + 20)
|
#define SX126X_DIO1 (0 + 20)
|
||||||
// Note DIO2 is attached internally to the module to an analog switch for TX/RX switching
|
// Note DIO2 is attached internally to the module to an analog switch for TX/RX switching
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
#define WIRE_INTERFACES_COUNT 0
|
#define WIRE_INTERFACES_COUNT 0
|
||||||
|
|
||||||
// GPIOs the SX1262 is connected
|
// GPIOs the SX1262 is connected
|
||||||
|
#define USE_SX1262
|
||||||
#define SX126X_CS 1 // aka SPI_NSS
|
#define SX126X_CS 1 // aka SPI_NSS
|
||||||
#define SX126X_DIO1 (4)
|
#define SX126X_DIO1 (4)
|
||||||
#define SX126X_BUSY (5)
|
#define SX126X_BUSY (5)
|
||||||
|
|
|
@ -116,6 +116,9 @@ static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
// I2C device addresses
|
// I2C device addresses
|
||||||
#define I2C_ADDR_BQ27441 0x55 // Battery gauge
|
#define I2C_ADDR_BQ27441 0x55 // Battery gauge
|
||||||
|
|
||||||
|
// SX1262 declaration
|
||||||
|
#define USE_SX1262
|
||||||
|
|
||||||
// CUSTOM GPIOs the SX1262
|
// CUSTOM GPIOs the SX1262
|
||||||
#define SX126X_CS (32)
|
#define SX126X_CS (32)
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,9 @@ static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
// I2C device addresses
|
// I2C device addresses
|
||||||
#define I2C_ADDR_BQ27441 0x55 // Battery gauge
|
#define I2C_ADDR_BQ27441 0x55 // Battery gauge
|
||||||
|
|
||||||
|
// SX1262 declaration
|
||||||
|
#define USE_SX1262
|
||||||
|
|
||||||
// CUSTOM GPIOs the SX1262
|
// CUSTOM GPIOs the SX1262
|
||||||
#define SX126X_CS (32)
|
#define SX126X_CS (32)
|
||||||
|
|
||||||
|
|
|
@ -140,6 +140,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
#define EXTERNAL_FLASH_USE_QSPI
|
#define EXTERNAL_FLASH_USE_QSPI
|
||||||
|
|
||||||
// CUSTOM GPIOs the SX1262MB2CAS shield when installed on the NRF52840-DK development board
|
// CUSTOM GPIOs the SX1262MB2CAS shield when installed on the NRF52840-DK development board
|
||||||
|
#define USE_SX1262
|
||||||
#define SX126X_CS (32 + 8) // P1.08
|
#define SX126X_CS (32 + 8) // P1.08
|
||||||
#define SX126X_DIO1 (32 + 6) // P1.06
|
#define SX126X_DIO1 (32 + 6) // P1.06
|
||||||
#define SX126X_BUSY (32 + 4) // P1.04
|
#define SX126X_BUSY (32 + 4) // P1.04
|
||||||
|
|
|
@ -129,6 +129,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
#define PIN_WIRE_SCL (32)
|
#define PIN_WIRE_SCL (32)
|
||||||
|
|
||||||
// CUSTOM GPIOs the SX1262
|
// CUSTOM GPIOs the SX1262
|
||||||
|
#define USE_SX1262
|
||||||
#define SX126X_CS (10)
|
#define SX126X_CS (10)
|
||||||
#define SX126X_DIO1 (20)
|
#define SX126X_DIO1 (20)
|
||||||
#define SX1262_DIO2 (26)
|
#define SX1262_DIO2 (26)
|
||||||
|
|
|
@ -152,6 +152,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
|
||||||
#define PIN_WIRE_SCL (32)
|
#define PIN_WIRE_SCL (32)
|
||||||
|
|
||||||
// CUSTOM GPIOs the SX1262
|
// CUSTOM GPIOs the SX1262
|
||||||
|
#define USE_SX1262
|
||||||
#define SX126X_CS (0 + 10) // FIXME - we really should define LORA_CS instead
|
#define SX126X_CS (0 + 10) // FIXME - we really should define LORA_CS instead
|
||||||
#define SX126X_DIO1 (0 + 20)
|
#define SX126X_DIO1 (0 + 20)
|
||||||
#define SX1262_DIO2 (0 + 26)
|
#define SX1262_DIO2 (0 + 26)
|
||||||
|
|
|
@ -180,6 +180,7 @@ External serial flash WP25R1635FZUIL0
|
||||||
* Lora radio
|
* Lora radio
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define USE_SX1262
|
||||||
#define SX126X_CS (0 + 24) // FIXME - we really should define LORA_CS instead
|
#define SX126X_CS (0 + 24) // FIXME - we really should define LORA_CS instead
|
||||||
#define SX126X_DIO1 (0 + 20)
|
#define SX126X_DIO1 (0 + 20)
|
||||||
// Note DIO2 is attached internally to the module to an analog switch for TX/RX switching
|
// Note DIO2 is attached internally to the module to an analog switch for TX/RX switching
|
||||||
|
|
Ładowanie…
Reference in New Issue