Skip to content

net/skald: Expose configurations to Kconfig #14824

Merged
leandrolanzieri merged 4 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_skald
Aug 26, 2020
Merged

net/skald: Expose configurations to Kconfig #14824
leandrolanzieri merged 4 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_skald

Conversation

@akshaim
Copy link
Copy Markdown
Member

@akshaim akshaim commented Aug 21, 2020

Contribution description

This PR exposes compile configurations in net/skald to Kconfig.

Testing procedure

  1. New documentation was built using Doxygen

    The build works fine.

  2. Test files were added to tests/net_skald/

    The test branch can be found here

    Compiled binaries for nrf52dk

Default State:

Firmware Output
main(): This is RIOT! (Version: 2020.10-devel-891-g1d136-Kconfig_skald_tests)
CONFIG_SKALD_INTERVAL=1500000
2
37
38

Usage with CFLAGS :

CFLAGS += -DCONFIG_SKALD_INTERVAL_S=1
CFLAGS += -DSKALD_ADV_CHAN={37,38}
Firmware Output
main(): This is RIOT! (Version: 2020.10-devel-891-g4038e-Kconfig_skald_tests)
SKALD_INTERVAL=1 * (1000000LU)
2
37
38

Usage with menuconfig :

make menuconfig

Default values

main(): This is RIOT! (Version: 2020.10-devel-891-g1d136-Kconfig_skald_tests)
CONFIG_SKALD_INTERVAL=1000000
3
37
38
39
Macros Configured output
main(): This is RIOT! (Version: 2020.10-devel-891-g1d136-Kconfig_skald_tests)
CONFIG_SKALD_INTERVAL=1600000
1
38

MACROS were successfully configured.

Issues/PRs references

#12888

@leandrolanzieri leandrolanzieri changed the title net/skald : : Expose configurations to Kconfig net/skald: Expose configurations to Kconfig Aug 21, 2020
@leandrolanzieri leandrolanzieri added Area: BLE Area: Bluetooth Low Energy support Area: Kconfig Area: Kconfig integration Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels Aug 21, 2020
@leandrolanzieri
Copy link
Copy Markdown
Contributor

Looks good, please squash @akshaim

Add macros to disable specific channels and move macros to
'CONFIG_' namespace
Expose configurations to Kconfig
Add documentation and checks for 'DOXYGEN' defines to better
render documentation.
@akshaim
Copy link
Copy Markdown
Member Author

akshaim commented Aug 26, 2020

Looks good, please squash @akshaim

Done.

@leandrolanzieri leandrolanzieri added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines labels Aug 26, 2020
Copy link
Copy Markdown
Contributor

@leandrolanzieri leandrolanzieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: BLE Area: Bluetooth Low Energy support Area: Kconfig Area: Kconfig integration CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants