net/lora : Expose configurations to Kconfig#15007
Conversation
|
@jia200x Hey. Appreciate if you can suggest the unit of "LORA_FREQUENCY_HOPPING_PERIOD_DEFAULT". Not sure if it milliseconds or microseconds. The official documentation from Semtech for sx127x chips does not seem to have it. |
The Hop Period is expressed in "symbols", not in a time unit :) |
|
I have removed all references to LoRaWAN to avoid confusion (if any) |
|
I just added some last comment, but over all this looks ok. Please address those and also the doc issues pointed out by Travis-CI. |
|
Looks good to me. Please squash |
|
BTW you can directly amend the doc issues when you squash: |
Added choices and moved 'LORA_BW_DEFAULT" to 'CONFIG_' namespace
Added choices and moved 'LORA_CR_DEFAULT' to 'CONFIG_' namespace
Move 'LORA_IQ_INVERTED_DEFAULT' to 'CONFIG_'
Move 'LORA_FREQUENCY_HOPPING_DEFAULT' to 'CONFIG_'
Move 'LORA_FIXED_HEADER_LEN_MODE_DEFAULT' to 'CONFIG_'
Modelled 'LORA_PAYLOAD_CRC_ON_DEFAULT' as bool. Introduced 'CONFIG_LORA_PAYLOAD_CRC_OFF_DEFAULT' to invert logic and tagged 'LORA_PAYLOAD_CRC_ON_DEFAULT' for deprecation
Change 'CONFIG_LORA_SF_DEFAULT' to 'SF7' and 'CONFIG_LORA_CR_DEFAULT' to 'LORA_CR_4_5' to allow shorter air times and make it easier to meet country specific regulations.
6e4f93e to
a9f7b88
Compare
Here we go |
|
great! let's see what Murdock says |
|
Thanks for your contribution! |
Contribution description -
This PR exposes compile configurations in net/lora to Kconfig.
Skipped
LORA_FREQUENCY_RESOLUTION_DEFAULTsince it was planned to be removed. #13318Testing procedure
New documentation was built using Doxygen
The build works fine.
Test files were added to tests/net_lora
The test file can be found here
Compiled binaries for b-l072z-lrwan1 and tested on the evaluation board.
Tested gnrc_lorawan example in
examplesDefault State:
Firmware Output
Usage with CFLAGS :
Firmware Output
Usage with menuconfig :
make menuconfigDefault Firmware Output
Configured Firmware Output
MACROS were successfully configured.
Issues/PRs references
#12888