mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-24 03:31:14 +00:00
Generalise SPI pin names (#2970)
* Generalise SPI pin names * CS not NSS * trunk fmt * Update variant.h --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
@@ -19,17 +19,17 @@
|
||||
|
||||
#define USE_SX1262
|
||||
|
||||
#undef RF95_SCK
|
||||
#undef RF95_MISO
|
||||
#undef RF95_MOSI
|
||||
#undef RF95_NSS
|
||||
#undef LORA_SCK
|
||||
#undef LORA_MISO
|
||||
#undef LORA_MOSI
|
||||
#undef LORA_CS
|
||||
|
||||
// RAK BSP somehow uses SPI1 instead of SPI0
|
||||
#define HW_SPI1_DEVICE
|
||||
#define RF95_SCK PIN_SPI0_SCK
|
||||
#define RF95_MOSI PIN_SPI0_MOSI
|
||||
#define RF95_MISO PIN_SPI0_MISO
|
||||
#define RF95_NSS PIN_SPI0_SS
|
||||
#define LORA_SCK PIN_SPI0_SCK
|
||||
#define LORA_MOSI PIN_SPI0_MOSI
|
||||
#define LORA_MISO PIN_SPI0_MISO
|
||||
#define LORA_CS PIN_SPI0_SS
|
||||
|
||||
#define LORA_DIO0 RADIOLIB_NC
|
||||
#define LORA_RESET 14
|
||||
@@ -38,7 +38,7 @@
|
||||
#define LORA_DIO3 RADIOLIB_NC
|
||||
|
||||
#ifdef USE_SX1262
|
||||
#define SX126X_CS RF95_NSS
|
||||
#define SX126X_CS LORA_CS
|
||||
#define SX126X_DIO1 LORA_DIO1
|
||||
#define SX126X_BUSY LORA_DIO2
|
||||
#define SX126X_RESET LORA_RESET
|
||||
|
||||
Reference in New Issue
Block a user