|
|
|
@ -125,6 +125,10 @@ |
|
|
|
|
#define MODEL_FE 0xFE // Homebrew board, max 17dBm output power
|
|
|
|
|
#define MODEL_FF 0xFF // Homebrew board, max 14dBm output power
|
|
|
|
|
|
|
|
|
|
// Board added by Mees Electronics
|
|
|
|
|
#define BOARD_WAVESHARE_ESP32_S3_PICO 0x61 // Waveshare ESP32 S3 Pico
|
|
|
|
|
#define MODEL_31 0x31 // SX1278
|
|
|
|
|
|
|
|
|
|
// Displays
|
|
|
|
|
#define OLED 0x01 |
|
|
|
|
#define EINK_BW 0x02 |
|
|
|
@ -411,15 +415,15 @@ |
|
|
|
|
|
|
|
|
|
const uint8_t interfaces[INTERFACE_COUNT] = {SX1276}; |
|
|
|
|
#if HAS_TCXO == true |
|
|
|
|
const bool interface_cfg[INTERFACE_COUNT][3] = {
|
|
|
|
|
const bool interface_cfg[INTERFACE_COUNT][3] = { |
|
|
|
|
// SX127X
|
|
|
|
|
{ |
|
|
|
|
true, // DEFAULT_SPI
|
|
|
|
|
true, // HAS_TCXO
|
|
|
|
|
false // DIO2_AS_RF_SWITCH
|
|
|
|
|
},
|
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
const int8_t interface_pins[INTERFACE_COUNT][10] = {
|
|
|
|
|
const int8_t interface_pins[INTERFACE_COUNT][10] = { |
|
|
|
|
// SX127X
|
|
|
|
|
{ |
|
|
|
|
18, // pin_ss
|
|
|
|
@ -444,16 +448,16 @@ |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if HAS_TCXO == false |
|
|
|
|
const bool interface_cfg[INTERFACE_COUNT][3] = {
|
|
|
|
|
const bool interface_cfg[INTERFACE_COUNT][3] = { |
|
|
|
|
// SX127X
|
|
|
|
|
{ |
|
|
|
|
true, // DEFAULT_SPI
|
|
|
|
|
false, // HAS_TCXO
|
|
|
|
|
false // DIO2_AS_RF_SWITCH
|
|
|
|
|
},
|
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const int8_t interface_pins[INTERFACE_COUNT][10] = {
|
|
|
|
|
const int8_t interface_pins[INTERFACE_COUNT][10] = { |
|
|
|
|
// SX127X
|
|
|
|
|
{ |
|
|
|
|
18, // pin_ss
|
|
|
|
@ -1022,6 +1026,77 @@ |
|
|
|
|
-1 // pin_tcxo_enable
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#elif BOARD_MODEL == BOARD_WAVESHARE_ESP32_S3_PICO |
|
|
|
|
#define HAS_DISPLAY true |
|
|
|
|
#define DISPLAY OLED |
|
|
|
|
#define HAS_BLUETOOTH true |
|
|
|
|
#define HAS_PMU true |
|
|
|
|
#define HAS_CONSOLE true |
|
|
|
|
#define HAS_EEPROM true |
|
|
|
|
#define INTERFACE_COUNT 1 |
|
|
|
|
|
|
|
|
|
const uint8_t interfaces[INTERFACE_COUNT] = {SX1276}; |
|
|
|
|
#if HAS_TCXO == true |
|
|
|
|
const bool interface_cfg[INTERFACE_COUNT][3] = { |
|
|
|
|
// SX127X
|
|
|
|
|
{ |
|
|
|
|
true, // DEFAULT_SPI
|
|
|
|
|
true, // HAS_TCXO
|
|
|
|
|
false // DIO2_AS_RF_SWITCH
|
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
const int8_t interface_pins[INTERFACE_COUNT][10] = { |
|
|
|
|
// SX127X
|
|
|
|
|
{ |
|
|
|
|
18, // pin_ss
|
|
|
|
|
-1, // pin_sclk
|
|
|
|
|
-1, // pin_mosi
|
|
|
|
|
-1, // pin_miso
|
|
|
|
|
-1, // pin_busy
|
|
|
|
|
26, // pin_dio
|
|
|
|
|
23, // pin_reset
|
|
|
|
|
-1, // pin_txen
|
|
|
|
|
-1, // pin_rxen
|
|
|
|
|
33 // pin_tcxo_enable
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
#endif |
|
|
|
|
#if defined(EXTERNAL_LEDS) |
|
|
|
|
const int pin_led_rx = 15; |
|
|
|
|
const int pin_led_tx = 4; |
|
|
|
|
#else |
|
|
|
|
const int pin_led_rx = 25; |
|
|
|
|
const int pin_led_tx = 25; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if HAS_TCXO == false |
|
|
|
|
const bool interface_cfg[INTERFACE_COUNT][3] = { |
|
|
|
|
// SX127X
|
|
|
|
|
{ |
|
|
|
|
true, // DEFAULT_SPI
|
|
|
|
|
false, // HAS_TCXO
|
|
|
|
|
false // DIO2_AS_RF_SWITCH
|
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const int8_t interface_pins[INTERFACE_COUNT][10] = { |
|
|
|
|
// SX127X
|
|
|
|
|
{ |
|
|
|
|
18, // pin_ss
|
|
|
|
|
-1, // pin_sclk
|
|
|
|
|
-1, // pin_mosi
|
|
|
|
|
-1, // pin_miso
|
|
|
|
|
-1, // pin_busy
|
|
|
|
|
26, // pin_dio
|
|
|
|
|
23, // pin_reset
|
|
|
|
|
-1, // pin_txen
|
|
|
|
|
-1, // pin_rxen
|
|
|
|
|
-1 // pin_tcxo_enable
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#else |
|
|
|
|
#error An unsupported ESP32 board was selected. Cannot compile RNode firmware. |
|
|
|
|
#endif |
|
|
|
|