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

Akshai M (Augustus Diode) notifications at github.com
Sun May 24 06:04:17 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/14126

-- Commit Summary --

  * gnrc/tcp : Update documentation
  * gnrc/tcp : Move GNRC_TCP_CONNECTION_TIMEOUT_DURATION to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_MSL to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_MSS_MULTIPLICATOR to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_RCV_BUFFERS to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_RTO_LOWER_BOUND to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_RTO_UPPER_BOUND to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_RTO_GRANULARITY to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_RTO_A_DIV to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_RTO_B_DIV to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_RTO_K to 'CONFIG_'
  * gnrc/tcp : Move CONFIG_GNRC_TCP_PROBE_LOWER_BOUND to 'CONFIG_'
  * gnrc/tcp : Move GNRC_TCP_PROBE_UPPER_BOUND to 'CONFIG_'
  * gnrc/tcp : Expose to Kconfig
  * tests/gnrc_tcp/ : Set 'CONFIG_' if not Kconfig

-- File Changes --

    M sys/include/net/gnrc/tcp.h (2)
    M sys/include/net/gnrc/tcp/config.h (81)
    M sys/net/gnrc/Kconfig (1)
    A sys/net/gnrc/transport_layer/tcp/Kconfig (85)
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c (42)
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c (3)
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c (24)
    M sys/net/gnrc/transport_layer/tcp/gnrc_tcp_rcvbuf.c (6)
    M sys/net/gnrc/transport_layer/tcp/internal/rcvbuf.h (2)
    M tests/gnrc_tcp/Makefile (14)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/14126.patch
https://github.com/RIOT-OS/RIOT/pull/14126.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/14126
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200523/6897c203/attachment.htm>


More information about the notifications mailing list