gnrc/gomach : Expose configurations to Kconfig#14104
Merged
leandrolanzieri merged 19 commits intoRIOT-OS:masterfrom Jun 19, 2020
Merged
gnrc/gomach : Expose configurations to Kconfig#14104leandrolanzieri merged 19 commits intoRIOT-OS:masterfrom
leandrolanzieri merged 19 commits intoRIOT-OS:masterfrom
Conversation
71 tasks
Contributor
leandrolanzieri
left a comment
There was a problem hiding this comment.
I think that the 80 chars limit is a warning and the absolute is 100. Maybe use 100 for some place where readability is not that great with this changes.
Member
Author
|
Rebased to solve merge conflicts. |
Contributor
leandrolanzieri
left a comment
There was a problem hiding this comment.
Just a nitpick. Please squash.
Add configurations to compile time configurations. Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
Member
Author
|
@leandrolanzieri Done. |
Contributor
No, let's keep it like that. |
leandrolanzieri
approved these changes
Jun 19, 2020
Contributor
leandrolanzieri
left a comment
There was a problem hiding this comment.
Changes look good. ACK.
Member
Author
Thank you for the review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR exposes compile configurations in GNRC:GOMACH, to Kconfig.
Testing procedure
The build works fine.
Test files can be found here .
Compiled binaries were uploaded to FIT IoT Test bed.
Default State:
Firmware Output
main(): This is RIOT! (Version: 2020.07-devel-638-g333c5-Kconfig_gomach_tests)
CONFIG_GNRC_GOMACH_CP_DURATION_US=(10U * (1000LU))
CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US=(300LU * (1000LU))
CONFIG_GNRC_GOMACH_CP_RANDOM_END_US=(1U * (1000LU))
CONFIG_GNRC_GOMACH_CP_MIN_GAP_US=(25U * (1000LU))
CONFIG_GNRC_GOMACH_WAIT_RX_END_US=(6U * (1000LU))
CONFIG_GNRC_GOMACH_NO_TX_ISR_US=(50U * (1000LU))
CONFIG_GNRC_GOMACH_MAX_PREAM_INTERVAL_US=(6U * (1000LU))
CONFIG_GNRC_GOMACH_PREAMBLE_INTERVAL_US=(2U * (1000LU))
CONFIG_GNRC_GOMACH_BCAST_INTERVAL_US=(1U * (1000LU))
CONFIG_GNRC_GOMACH_VTDMA_SLOT_SIZE_US=(5U * (1000LU))
CONFIG_GNRC_GOMACH_TX_BUSY_THRESHOLD=(5U)
CONFIG_GNRC_GOMACH_CP_EXTEND_THRESHOLD=(5U)
CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE=(30U)
CONFIG_GNRC_GOMACH_MAX_ALLOC_SENDER_NUM=(11U)
CONFIG_GNRC_GOMACH_REPHASELOCK_THRESHOLD=(4U)
CONFIG_GNRC_GOMACH_T2U_RETYR_THRESHOLD=(2U)
CONFIG_GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD=(10U)
Usage with menuconfig [default values]
Firmware Output
main(): This is RIOT! (Version: 2020.07-devel-638-g333c5-Kconfig_gomach_tests)
CONFIG_GNRC_GOMACH_CP_DURATION_US=10000
CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US=300000
CONFIG_GNRC_GOMACH_CP_RANDOM_END_US=1000
CONFIG_GNRC_GOMACH_CP_MIN_GAP_US=25000
CONFIG_GNRC_GOMACH_WAIT_RX_END_US=6000
CONFIG_GNRC_GOMACH_NO_TX_ISR_US=50000
CONFIG_GNRC_GOMACH_MAX_PREAM_INTERVAL_US=6000
CONFIG_GNRC_GOMACH_PREAMBLE_INTERVAL_US=2000
CONFIG_GNRC_GOMACH_BCAST_INTERVAL_US=1000
CONFIG_GNRC_GOMACH_VTDMA_SLOT_SIZE_US=5000
CONFIG_GNRC_GOMACH_TX_BUSY_THRESHOLD=5
CONFIG_GNRC_GOMACH_CP_EXTEND_THRESHOLD=5
CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE=30
CONFIG_GNRC_GOMACH_MAX_ALLOC_SENDER_NUM=11
CONFIG_GNRC_GOMACH_REPHASELOCK_THRESHOLD=4
CONFIG_GNRC_GOMACH_T2U_RETYR_THRESHOLD=2
CONFIG_GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD=10
Usage with menuconfig
Firmware Output
main(): This is RIOT! (Version: 2020.07-devel-638-g333c5-Kconfig_gomach_tests)
CONFIG_GNRC_GOMACH_CP_DURATION_US=20000
CONFIG_GNRC_GOMACH_SUPERFRAME_DURATION_US=350000
CONFIG_GNRC_GOMACH_CP_RANDOM_END_US=2000
CONFIG_GNRC_GOMACH_CP_MIN_GAP_US=55000
CONFIG_GNRC_GOMACH_WAIT_RX_END_US=5000
CONFIG_GNRC_GOMACH_NO_TX_ISR_US=30000
CONFIG_GNRC_GOMACH_MAX_PREAM_INTERVAL_US=6005
CONFIG_GNRC_GOMACH_PREAMBLE_INTERVAL_US=2005
CONFIG_GNRC_GOMACH_BCAST_INTERVAL_US=1001
CONFIG_GNRC_GOMACH_VTDMA_SLOT_SIZE_US=5000
CONFIG_GNRC_GOMACH_TX_BUSY_THRESHOLD=6
CONFIG_GNRC_GOMACH_CP_EXTEND_THRESHOLD=6
CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE=35
CONFIG_GNRC_GOMACH_MAX_ALLOC_SENDER_NUM=12
CONFIG_GNRC_GOMACH_REPHASELOCK_THRESHOLD=6
CONFIG_GNRC_GOMACH_T2U_RETYR_THRESHOLD=1
CONFIG_GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD=11
MACROS were successfully configured.
Issues/PRs references
#12888
Merge this only after merging #14086