gnrc/mac : Expose configurations to Kconfig#14138
gnrc/mac : Expose configurations to Kconfig#14138leandrolanzieri merged 8 commits intoRIOT-OS:masterfrom
Conversation
|
@miri64 Do you think that GNRC_MAC_TYPE_GET_DUTYCYCLE should be made configurable as well ? |
No, its an IPC message type. It is unclear to me, why it is configurable in the current version in the first place. |
If you think so, maybe I should remove the |
Yes, but this is IMHO a separate change from the Kconfig integration. |
|
@miri64 Okay. I shall go for a separate PR then. |
leandrolanzieri
left a comment
There was a problem hiding this comment.
Some minor comments. Besides that I'd rather have just one commit that updates the documentation after all changes are done. That would be clearer.
Sure. I shall do that from now on. I used ';' to restrict the line to 80 chars. |
|
@akshaim please squash, and try merging the documentation commits |
|
@leandrolanzieri Please wait. Need to test. |
Done. |
|
I think something happened when squashing. Why is |
Modelled GNRC_MAC_ENABLE_DUTYCYCLE_RECORD as bool. Introduced CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD to invert the logic. Tagged GNRC_MAC_ENABLE_DUTYCYCLE_RECORD for deprecation.
Expose configurations to Kconfig Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
Move non 'CONFIG_' macros away from 'net_gnrc_mac_conf' group
Thanks for pointing that out. Multiple rebases to merge the documentation resulted in some unexpected changes. The final commit passed the tests however I missed the intermediate ones. |
Contribution description
This PR exposes compile configurations in GNRC: MAC to Kconfig.
Testing procedure
The build works fine.
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-739-g6e24-Kconfig_mac_tests)
CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP=(3U)
GNRC_MAC_RX_QUEUE_SIZE=(1 << (3U))
CONFIG_GNRC_MAC_DISPATCH_BUFFER_SIZE_EXP=(3U)
GNRC_MAC_DISPATCH_BUFFER_SIZE=(1 << (3U))
CONFIG_GNRC_MAC_NEIGHBOR_COUNT=4
CONFIG_GNRC_MAC_TX_QUEUE_SIZE_EXP=(3U)
GNRC_MAC_TX_QUEUE_SIZE=4
CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD=CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD
GNRC_MAC_ENABLE_DUTYCYCLE_RECORD=(1U)
Usage with menuconfig [default values]
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-739-g6e24-Kconfig_mac_tests)
CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP=3
GNRC_MAC_RX_QUEUE_SIZE=(1 << 3)
CONFIG_GNRC_MAC_DISPATCH_BUFFER_SIZE_EXP=3
GNRC_MAC_DISPATCH_BUFFER_SIZE=(1 << 3)
CONFIG_GNRC_MAC_NEIGHBOR_COUNT=8
CONFIG_GNRC_MAC_TX_QUEUE_SIZE_EXP=3
GNRC_MAC_TX_QUEUE_SIZE=(1 << 3)
CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD=CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD
GNRC_MAC_ENABLE_DUTYCYCLE_RECORD=(1U)
Usage with 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-739-g6e24-Kconfig_mac_tests)
CONFIG_GNRC_MAC_RX_QUEUE_SIZE_EXP=4
GNRC_MAC_RX_QUEUE_SIZE=(1 << 4)
CONFIG_GNRC_MAC_DISPATCH_BUFFER_SIZE_EXP=2
GNRC_MAC_DISPATCH_BUFFER_SIZE=(1 << 2)
CONFIG_GNRC_MAC_NEIGHBOR_COUNT=4
CONFIG_GNRC_MAC_TX_QUEUE_SIZE_EXP=2
GNRC_MAC_TX_QUEUE_SIZE=(1 << 2)
CONFIG_GNRC_MAC_DISABLE_DUTYCYCLE_RECORD=1
GNRC_MAC_ENABLE_DUTYCYCLE_RECORD=(0)
MACROS were successfully configured.
Issues/PRs references
#12888