mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-07-22 06:19:19 -04:00
Squashed commit of the following:
commit 2e25bff15413f2365f1b18c901f93297ce07c645 Author: jeremy <jeremy@ubuntu> Date: Thu Sep 12 10:19:07 2024 -0400 Adds t-echo support commit aa44625847179c5b3c4d03b9f7e062f409da0d8a Author: jeremy <jeremy@ubuntu> Date: Thu Sep 12 10:19:07 2024 -0400 Adds t-echo support
This commit is contained in:
parent
07b7e28c74
commit
02f9dc1345
8 changed files with 136 additions and 12 deletions
|
@ -17,8 +17,9 @@
|
|||
#include <SPI.h>
|
||||
#include "Utilities.h"
|
||||
|
||||
#if MCU_VARIANT == MCU_NRF52
|
||||
#define INTERFACE_SPI
|
||||
#if MCU_VARIANT == MCU_NRF52
|
||||
#define INTERFACE_SPI
|
||||
#if BOARD_MODEL == BOARD_RAK4631
|
||||
// Required because on RAK4631, non-default SPI pins must be initialised when class is declared.
|
||||
SPIClass interface_spi[1] = {
|
||||
// SX1262
|
||||
|
@ -29,6 +30,17 @@
|
|||
interface_pins[0][2]
|
||||
)
|
||||
};
|
||||
#elif BOARD_MODEL == BOARD_TECHO
|
||||
SPIClass interface_spi[1] = {
|
||||
// SX1262
|
||||
SPIClass(
|
||||
NRF_SPIM3,
|
||||
interface_pins[0][3],
|
||||
interface_pins[0][1],
|
||||
interface_pins[0][2]
|
||||
)
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef INTERFACE_SPI
|
||||
|
@ -1101,11 +1113,11 @@ void validate_status() {
|
|||
if (eeprom_checksum_valid()) {
|
||||
eeprom_ok = true;
|
||||
if (modems_installed) {
|
||||
if (device_init()) {
|
||||
hw_ready = true;
|
||||
} else {
|
||||
hw_ready = false;
|
||||
}
|
||||
if (device_init()) {
|
||||
hw_ready = true;
|
||||
} else {
|
||||
hw_ready = false;
|
||||
}
|
||||
} else {
|
||||
hw_ready = false;
|
||||
Serial.write("No valid radio module found\r\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue