-
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/lorawan : Expose configurations to Kconfig #15507
Conversation
b1c1133
to
0170b61
Compare
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.
Some initial comments. Maybe @jia200x could take a look at some of the specific options which he knows better
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.
Some comments
Is it okay to squash @leandrolanzieri @jia200x ? |
This needs rebasing |
a24406e
to
11d84de
Compare
Introduced a bool 'LORAMAC_DEFAULT_PRIVATE_NETWORK' to invert the semantics of 'LORAMAC_DEFAULT_PUBLIC_NETWORK'. Move 'LORAMAC_DEFAULT_PRIVATE_NETWORK' to 'CONFIG_' namespace.
Move 'LORAMAC_DEFAULT_DR' to 'CONFIG_' and enable options for Kconfig
Move 'LORAMAC_DEFAULT_TX_POWER' to 'CONFIG_' namespace and assign choices for Kconfig exposure
Move 'LORAMAC_DEFAULT_TX_MODE' to 'CONFIG_' and added symbols for Kconfig exposure
Move 'LORAMAC_DEFAULT_ADR' to 'CONFIG_' namespace and model 'CONFIG_LORAMAC_DEFAULT_ADR' as BOOL for Kconfig
Added symbols 'CONFIG_LORAMAC_DEFAULT_RX2_DR_XX' to define choice in Kconfig
Added symbols 'CONFIG_LORAMAC_DEFAULT_JOIN_PROCEDURE_XXX' for Kconfig exposure
Updates macros to allow for changes via Kconfig
Marked as non-supported: LORAMAC_DEFAULT_ADR_ACK_LIMIT LORAMAC_DEFAULT_ADR_ACK_DELAY LORAMAC_DEFAULT_ADR_TIMEOUT
Translate Kconfigs and CFLAGS
c9cbb2d
to
c769103
Compare
Rebased to current master. |
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 the test output and the contribution!! |
Contribution description
This PR exposes compile configurations in net/lorawan to Kconfig.
--Update--
Summary of CONFIGurations
The following unused configurations were not removed as they may be necessary for future updates of gnrc_lorawan.The following configurations were removed.The following configurations were marked as not supported for the time being as support is expected soon.
Testing procedure
New documentation was built using Doxygen
The build works fine.
Example in example/gnrc_lorawan was updated to display the macros.
The updated example can be found here
Compiled binaries for
b-l072z-lrwan1
Default State:
Firmware Output ( without configurations in examples/gnrc_lorawan/Makefile )
Firmware Output ( with configurations in examples/gnrc_lorawan/Makefile)
Usage with menuconfig :
make menuconfig
Default Firmware Output ( with Kconfig and configurations in examples/gnrc_lorawan/Makefile)
Configured Firmware Output ( with Kconfig configured and with configurations in examples/gnrc_lorawan/Makefile)
MACROS were successfully configured.
Issues/PRs references
#15007
#12888