Skip to content

net/cord : Expose configurations to Kconfig#14321

Merged
leandrolanzieri merged 6 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_cord
Sep 7, 2020
Merged

net/cord : Expose configurations to Kconfig#14321
leandrolanzieri merged 6 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_cord

Conversation

@akshaim
Copy link
Copy Markdown
Member

@akshaim akshaim commented Jun 20, 2020

Contribution description - [Updated]

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

Skipped CORD_STARTUP_DELAY since it was not being used.

Testing procedure

  1. New documentation was built using Doxygen

    The build works fine.

  2. Test files were added to tests/net_cord/

    The test file can be found here

    Compiled binaries for native

Default State:

Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.07-devel-1360-g9f894-Kconfig_cord_tests)
CONFIG_CORD_LT=(86400UL)
CONFIG_CORD_UPDATE_INTERVAL=(((86400UL) / 4) * 3)
CONFIG_CORD_EP=CONFIG_CORD_EP

Usage with CFLAGS :

CFLAGS += -DCONFIG_CORD_LT=5000
CFLAGS += -DCONFIG_CORD_UPDATE_INTERVAL=3000
CFLAGS += -DCONFIG_CORD_EP=\"Newname\"
Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.07-devel-1361-g660b8-Kconfig_cord_tests)
CONFIG_CORD_LT=5000
CONFIG_CORD_UPDATE_INTERVAL=3000
CONFIG_CORD_EP="Newname"

Usage with menuconfig :

make menuconfig

Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.07-devel-1361-g4c9b7a-Kconfig_cord_tests)
CONFIG_CORD_LT=86400
CONFIG_CORD_UPDATE_INTERVAL=61800
CONFIG_CORD_EP="Testname"

MACROS were successfully configured.

Issues/PRs references

#12888

@leandrolanzieri leandrolanzieri added Area: Kconfig Area: Kconfig integration Type: new feature The issue requests / The PR implemements a new feature for RIOT labels Jun 22, 2020
@akshaim
Copy link
Copy Markdown
Member Author

akshaim commented Jun 23, 2020

@haukepetersen Hi. Do you think I should expose CORD_EP_SUFFIX_LEN and CORD_EP_PREFIX as well to Kconfig ?

@leandrolanzieri
Copy link
Copy Markdown
Contributor

This needs rebasing

@leandrolanzieri
Copy link
Copy Markdown
Contributor

Please squash

@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 Sep 7, 2020
@leandrolanzieri leandrolanzieri added this to the Release 2020.10 milestone Sep 7, 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

@leandrolanzieri leandrolanzieri merged commit 40b52e1 into RIOT-OS:master Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: new feature The issue requests / The PR implemements a new feature for RIOT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants