mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-08-09 14:52:35 -04:00
Cleanup
This commit is contained in:
parent
b891932353
commit
b02989e07a
3 changed files with 286 additions and 509 deletions
|
@ -1214,13 +1214,7 @@ void setFrequency() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t getRandom() {
|
uint8_t getRandom() { return random(0xFF); }
|
||||||
if (radio_online) {
|
|
||||||
return LoRa->random();
|
|
||||||
} else {
|
|
||||||
return 0x00;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void promisc_enable() {
|
void promisc_enable() {
|
||||||
promisc = true;
|
promisc = true;
|
||||||
|
|
782
sx128x.cpp
782
sx128x.cpp
File diff suppressed because it is too large
Load diff
5
sx128x.h
5
sx128x.h
|
@ -17,7 +17,7 @@
|
||||||
#define LORA_DEFAULT_RXEN_PIN -1
|
#define LORA_DEFAULT_RXEN_PIN -1
|
||||||
#define LORA_DEFAULT_TXEN_PIN -1
|
#define LORA_DEFAULT_TXEN_PIN -1
|
||||||
#define LORA_DEFAULT_BUSY_PIN -1
|
#define LORA_DEFAULT_BUSY_PIN -1
|
||||||
#define LORA_MODEM_TIMEOUT_MS 5E3
|
#define LORA_MODEM_TIMEOUT_MS 15E3
|
||||||
|
|
||||||
#define PA_OUTPUT_RFO_PIN 0
|
#define PA_OUTPUT_RFO_PIN 0
|
||||||
#define PA_OUTPUT_PA_BOOST_PIN 1
|
#define PA_OUTPUT_PA_BOOST_PIN 1
|
||||||
|
@ -91,12 +91,9 @@ public:
|
||||||
void setPacketParams(uint32_t preamble, uint8_t headermode, uint8_t length, uint8_t crc);
|
void setPacketParams(uint32_t preamble, uint8_t headermode, uint8_t length, uint8_t crc);
|
||||||
void setModulationParams(uint8_t sf, uint8_t bw, uint8_t cr);
|
void setModulationParams(uint8_t sf, uint8_t bw, uint8_t cr);
|
||||||
|
|
||||||
// deprecated
|
|
||||||
void crc() { enableCrc(); }
|
void crc() { enableCrc(); }
|
||||||
void noCrc() { disableCrc(); }
|
void noCrc() { disableCrc(); }
|
||||||
|
|
||||||
byte random();
|
|
||||||
|
|
||||||
void setPins(int ss = LORA_DEFAULT_SS_PIN, int reset = LORA_DEFAULT_RESET_PIN, int dio0 = LORA_DEFAULT_DIO0_PIN, int busy = LORA_DEFAULT_BUSY_PIN, int rxen = LORA_DEFAULT_RXEN_PIN, int txen = LORA_DEFAULT_TXEN_PIN);
|
void setPins(int ss = LORA_DEFAULT_SS_PIN, int reset = LORA_DEFAULT_RESET_PIN, int dio0 = LORA_DEFAULT_DIO0_PIN, int busy = LORA_DEFAULT_BUSY_PIN, int rxen = LORA_DEFAULT_RXEN_PIN, int txen = LORA_DEFAULT_TXEN_PIN);
|
||||||
void setSPIFrequency(uint32_t frequency);
|
void setSPIFrequency(uint32_t frequency);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue