Browse Source
Merge pull request #1508 from recrof/rak4631-cleanup
cleanup: moved RAK4631 pindefs from board file to variant.h
pull/1509/head
Liam Cottle
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
30 additions and
34 deletions
-
variants/rak4631/RAK4631Board.h
-
variants/rak4631/variant.h
|
|
|
@ -4,27 +4,6 @@ |
|
|
|
#include <Arduino.h> |
|
|
|
#include <helpers/NRF52Board.h> |
|
|
|
|
|
|
|
// LoRa radio module pins for RAK4631
|
|
|
|
#define P_LORA_DIO_1 47 |
|
|
|
#define P_LORA_NSS 42 |
|
|
|
#define P_LORA_RESET RADIOLIB_NC // 38
|
|
|
|
#define P_LORA_BUSY 46 |
|
|
|
#define P_LORA_SCLK 43 |
|
|
|
#define P_LORA_MISO 45 |
|
|
|
#define P_LORA_MOSI 44 |
|
|
|
#define SX126X_POWER_EN 37 |
|
|
|
|
|
|
|
//#define PIN_GPS_SDA 13 //GPS SDA pin (output option)
|
|
|
|
//#define PIN_GPS_SCL 14 //GPS SCL pin (output option)
|
|
|
|
//#define PIN_GPS_TX 16 //GPS TX pin
|
|
|
|
//#define PIN_GPS_RX 15 //GPS RX pin
|
|
|
|
#define PIN_GPS_1PPS 17 //GPS PPS pin
|
|
|
|
#define GPS_BAUD_RATE 9600 |
|
|
|
#define GPS_ADDRESS 0x42 //i2c address for GPS
|
|
|
|
|
|
|
|
#define SX126X_DIO2_AS_RF_SWITCH true |
|
|
|
#define SX126X_DIO3_TCXO_VOLTAGE 1.8 |
|
|
|
|
|
|
|
// built-ins
|
|
|
|
#define PIN_VBAT_READ 5 |
|
|
|
#define ADC_MULTIPLIER (3 * 1.73 * 1.187 * 1000) |
|
|
|
|
|
|
|
@ -144,6 +144,19 @@ extern "C" |
|
|
|
static const uint8_t MISO = PIN_SPI_MISO; |
|
|
|
static const uint8_t SCK = PIN_SPI_SCK; |
|
|
|
|
|
|
|
// LoRa radio module pins for RAK4631
|
|
|
|
#define P_LORA_DIO_1 (47) |
|
|
|
#define P_LORA_NSS (42) |
|
|
|
#define P_LORA_RESET (-1) |
|
|
|
#define P_LORA_BUSY (46) |
|
|
|
#define P_LORA_SCLK (43) |
|
|
|
#define P_LORA_MISO (45) |
|
|
|
#define P_LORA_MOSI (44) |
|
|
|
#define SX126X_POWER_EN (37) |
|
|
|
|
|
|
|
#define SX126X_DIO2_AS_RF_SWITCH true |
|
|
|
#define SX126X_DIO3_TCXO_VOLTAGE 1.8 |
|
|
|
|
|
|
|
/*
|
|
|
|
* Wire Interfaces |
|
|
|
*/ |
|
|
|
@ -169,6 +182,10 @@ extern "C" |
|
|
|
#define EXTERNAL_FLASH_DEVICES IS25LP080D |
|
|
|
#define EXTERNAL_FLASH_USE_QSPI |
|
|
|
|
|
|
|
#define PIN_GPS_1PPS 17 //GPS PPS pin
|
|
|
|
#define GPS_BAUD_RATE 9600 |
|
|
|
#define GPS_ADDRESS 0x42 //i2c address for GPS
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
} |
|
|
|
#endif |
|
|
|
|