Compare commits
2 commits
c690e3d425
...
ad717a6978
Author | SHA1 | Date | |
---|---|---|---|
|
ad717a6978 | ||
|
1b3e7601f7 |
1 changed files with 7 additions and 11 deletions
|
@ -97,11 +97,11 @@
|
||||||
|
|
||||||
#define ERR_LOR_VERSION_MISMATCH (01)
|
#define ERR_LOR_VERSION_MISMATCH (01)
|
||||||
|
|
||||||
#define LORA32_DEFAULT_CONFIG {\
|
#define LORA32_DEFAULT_CONFIG() {\
|
||||||
.bandwidth = 7,\
|
.bandwidth = 7,\
|
||||||
.codingRate = 5,\
|
.codingRate = 5,\
|
||||||
.frequency = 915000000,\
|
.frequency = 915000000,\
|
||||||
.spreadingFactor = 11,\
|
.spreadingFactor = 8,\
|
||||||
.preamble = DEFAULT_PREAMBLE,\
|
.preamble = DEFAULT_PREAMBLE,\
|
||||||
.implicitHeader = false,\
|
.implicitHeader = false,\
|
||||||
.useCRC = false,\
|
.useCRC = false,\
|
||||||
|
@ -109,18 +109,14 @@
|
||||||
.copi = 23,\
|
.copi = 23,\
|
||||||
.cipo = 19,\
|
.cipo = 19,\
|
||||||
.clk = 18,\
|
.clk = 18,\
|
||||||
.dio0 = -1,\
|
.dio0 = 5,\
|
||||||
.dio1 = -1,\
|
.dio1 = 12,\
|
||||||
.dio2 = -1,\
|
.dio2 = 13,\
|
||||||
.nss = -1,\
|
.nss = 15,\
|
||||||
.reset = -1,\
|
.reset = 4,\
|
||||||
.spi_host = 1,\
|
.spi_host = 1,\
|
||||||
}
|
}
|
||||||
|
|
||||||
enum freq {
|
|
||||||
F433, F866, F915
|
|
||||||
} lora32_freq;
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
B78, B104, B156, B208, B3125, B417, B625, B125, B250, B500
|
B78, B104, B156, B208, B3125, B417, B625, B125, B250, B500
|
||||||
} bandwidth;
|
} bandwidth;
|
||||||
|
|
Loading…
Reference in a new issue