Fixed board and modem import structure

This commit is contained in:
Mark Qvist
2024-02-09 15:29:54 +01:00
parent 950e94f56a
commit e093fa6ba3
4 changed files with 80 additions and 44 deletions

View File

@@ -4,6 +4,7 @@
// Modifications and additions copyright 2023 by Mark Qvist
// Obviously still under the MIT license.
#include "Boards.h"
#include "LoRa.h"
#include "Modem.h"
@@ -38,6 +39,12 @@
#define ISR_VECT
#endif
#if BOARD_MODEL == BOARD_RNODE_NG_22
#define MODEM_MISO 3
#define MODEM_MOSI 6
#define MODEM_CLK 5
#endif
#if MODEM == SX1262
#define OP_FIFO_WRITE 0x0E
#define OP_FIFO_READ 0x1E