[riot-notifications] [RIOT-OS/RIOT] gnrc/lwmac : Expose configurations to Kconfig (#14120)

Akshai M (Augustus Diode) notifications at github.com
Sat May 23 09:14:06 CEST 2020


### Contribution description

This PR exposes compile configurations in GNRC: LWMAC to Kconfig.

### Testing procedure

1. New documentation was built using Doxygen 

The build works fine.

2. Header and macro was introduced to tests/gnrc_lwmac/

```

#include "net/gnrc/lwmac/lwmac.h"
#include "net/gnrc/lwmac/types.h"

#define STR(x)   #x
#define SHOW_DEFINE(x) printf("%s=%s\n", #x, STR(x))

```
The test file can be found [here](https://github.com/akshaim/RIOT/commit/e2d42ba4e39fddcf4b419917661a0d8b85ce49a1) .
Compiled binaries were uploaded to FIT IoT Test bed.
#### Default State:

##### Firmware Output

main(): This is RIOT! (Version: 2020.07-devel-717-gb00e4-Kconfig_lwmac_tests)
CONFIG_GNRC_LWMAC_WAKEUP_INTERVAL_US=(200LU *(1000LU))
CONFIG_GNRC_LWMAC_TIME_BETWEEN_WR_US=(5U *(1000LU))
CONFIG_GNRC_LWMAC_WR_PREPARATION_US=((3U *(1000LU)))
CONFIG_GNRC_LWMAC_DATA_DELAY_US=(10U *(1000LU))
CONFIG_GNRC_LWMAC_DATA_CSMA_RETRIES=(3U)
CONFIG_GNRC_LWMAC_MAX_DATA_TX_RETRIES=(3U)
CONFIG_GNRC_LWMAC_MAX_RX_EXTENSION_NUM=(3U)
CONFIG_GNRC_LWMAC_BROADCAST_CSMA_RETRIES=(3U)
CONFIG_GNRC_LWMAC_TIMEOUT_COUNT=(3U)
LWMAC test application

#### Usage with menuconfig [default values]

> make menuconfig

##### Firmware Output

main(): This is RIOT! (Version: 2020.07-devel-717-gb00e4-Kconfig_lwmac_tests)
CONFIG_GNRC_LWMAC_WAKEUP_INTERVAL_US=200000
CONFIG_GNRC_LWMAC_TIME_BETWEEN_WR_US=5000
CONFIG_GNRC_LWMAC_WR_PREPARATION_US=3000
CONFIG_GNRC_LWMAC_DATA_DELAY_US=10000
CONFIG_GNRC_LWMAC_DATA_CSMA_RETRIES=3
CONFIG_GNRC_LWMAC_MAX_DATA_TX_RETRIES=3
CONFIG_GNRC_LWMAC_MAX_RX_EXTENSION_NUM=3
CONFIG_GNRC_LWMAC_BROADCAST_CSMA_RETRIES=3
CONFIG_GNRC_LWMAC_TIMEOUT_COUNT=3
LWMAC test application

#### Usage with menuconfig

> make menuconfig

##### Firmware Output

main(): This is RIOT! (Version: 2020.07-devel-717-gb00e4-Kconfig_lwmac_tests)
CONFIG_GNRC_LWMAC_WAKEUP_INTERVAL_US=300000
CONFIG_GNRC_LWMAC_TIME_BETWEEN_WR_US=6000
CONFIG_GNRC_LWMAC_WR_PREPARATION_US=2000
CONFIG_GNRC_LWMAC_DATA_DELAY_US=15000
CONFIG_GNRC_LWMAC_DATA_CSMA_RETRIES=2
CONFIG_GNRC_LWMAC_MAX_DATA_TX_RETRIES=4
CONFIG_GNRC_LWMAC_MAX_RX_EXTENSION_NUM=4
CONFIG_GNRC_LWMAC_BROADCAST_CSMA_RETRIES=2
CONFIG_GNRC_LWMAC_TIMEOUT_COUNT=4
LWMAC test application

**MACROS were successfully configured.**

### Issues/PRs references

#12888 
Merge this only after merging #14086 
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/14120

-- Commit Summary --

  * gnrc/lwmac : Update documentation
  * gnrc/lwmac : Move GNRC_LWMAC_WAKEUP_INTERVAL_US to 'CONFIG_'
  * gnrc/lwmac : Move GNRC_LWMAC_TIME_BETWEEN_WR_US to 'CONFIG_'
  * gnrc/lwmac : Move GNRC_LWMAC_MAX_RX_EXTENSION_NUM to 'CONFIG'
  * gnrc/lwmac : Move GNRC_LWMAC_BROADCAST_CSMA_RETRIES to 'CONFIG_'
  * gnrc/lwmac : Move GNRC_LWMAC_TIMEOUT_COUNT to 'CONFIG_'
  * gnrc/lwmac : Move GNRC_LWMAC_WR_PREPARATION_US to 'CONFIG_'
  * gnrc/lwmac : Move GNRC_LWMAC_DATA_DELAY_US to 'CONFIG_'
  * gnrc/lwmac : Move GNRC_LWMAC_DATA_CSMA_RETRIES to 'CONFIG_'
  * gnrc/lwmac : Move GNRC_LWMAC_MAX_DATA_TX_RETRIES to 'CONFIG_'
  * gnrc/lwmac : Expose to Kconfig

-- File Changes --

    M sys/include/net/gnrc/lwmac/lwmac.h (269)
    M sys/include/net/gnrc/lwmac/types.h (12)
    M sys/net/gnrc/Kconfig (1)
    A sys/net/gnrc/link_layer/lwmac/Kconfig (142)
    M sys/net/gnrc/link_layer/lwmac/include/lwmac_internal.h (6)
    M sys/net/gnrc/link_layer/lwmac/lwmac.c (40)
    M sys/net/gnrc/link_layer/lwmac/rx_state_machine.c (17)
    M sys/net/gnrc/link_layer/lwmac/timeout.c (12)
    M sys/net/gnrc/link_layer/lwmac/tx_state_machine.c (21)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/14120.patch
https://github.com/RIOT-OS/RIOT/pull/14120.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14120
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200523/80d41031/attachment-0001.htm>


More information about the notifications mailing list