radmir
5 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
0 additions and
17 deletions
-
variants/ebyte_eora_hub/target.cpp
-
variants/ebyte_eora_hub/target.h
|
|
|
@ -86,20 +86,6 @@ bool radio_init() { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
uint32_t radio_get_rng_seed() { |
|
|
|
return radio.random(0x7FFFFFFF); |
|
|
|
} |
|
|
|
|
|
|
|
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr) { |
|
|
|
radio.setFrequency(freq); |
|
|
|
radio.setSpreadingFactor(sf); |
|
|
|
radio.setBandwidth(bw); |
|
|
|
radio.setCodingRate(cr); |
|
|
|
} |
|
|
|
|
|
|
|
void radio_set_tx_power(int8_t dbm) { |
|
|
|
radio.setOutputPower(dbm); |
|
|
|
} |
|
|
|
|
|
|
|
mesh::LocalIdentity radio_new_identity() { |
|
|
|
RadioNoiseListener rng(radio); |
|
|
|
|
|
|
|
@ -24,7 +24,4 @@ extern SensorManager sensors; |
|
|
|
#endif |
|
|
|
|
|
|
|
bool radio_init(); |
|
|
|
uint32_t radio_get_rng_seed(); |
|
|
|
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr); |
|
|
|
void radio_set_tx_power(int8_t dbm); |
|
|
|
mesh::LocalIdentity radio_new_identity(); |
|
|
|
|