-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
Thanks for your contribution! |
Contribution description -
This PR exposes compile configurations in net/lora to Kconfig.
Skipped
LORA_FREQUENCY_RESOLUTION_DEFAULT
since 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
examples
Default State:
Firmware Output
Usage with CFLAGS :
Firmware Output
Usage with menuconfig :
make menuconfig
Default Firmware Output
Configured Firmware Output
MACROS were successfully configured.
Issues/PRs references
#12888