[riot-notifications] [RIOT-OS/RIOT] gnrc/pktdump : Expose Configurations to Kconfig (#14071)

Akshai M (Augustus Diode) notifications at github.com
Wed May 13 20:26:37 CEST 2020


### Contribution description

This PR exposes compile configurations in PKTDUMP GNRC to Kconfig.

### Testing procedure

1. New documentation was built using doxygen 

The build works fine.

2. Test folder and files were introduced to show the macro on Native environment.

Test Files


#### Default State:

##### Firmware Output

Default
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-517-gcc4ca-Kconfig_pktdump_tests)
CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP=CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP
CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE=(8U)

#### Usage with CFLAGS 

/tests/gnrc_pkdump/Makefile

> CFLAGS += -DCONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE=16

##### 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-517-gcc4ca-Kconfig_pktdump_tests)
CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP=CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP
CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE=16

#### Usage with Kconfig

/tests/gnrc_pktdump

> 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-517-gcc4ca-Kconfig_pktdump_tests)
CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP=6
CONFIG_GNRC_PKTDUMP_MSG_QUEUE_SIZE=(1<<6)

### Issues/PRs references

#12888
@leandrolanzieri 

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * gnrc/pktdump : Update documentation
  * gnrc/pktdump : Add CONFIG_
  * gnrc/pktdump : Expose to Kconfig

-- File Changes --

    M sys/include/net/gnrc/pktdump.h (14)
    M sys/net/gnrc/Kconfig (1)
    A sys/net/gnrc/pktdump/Kconfig (22)
    M sys/net/gnrc/pktdump/gnrc_pktdump.c (4)

-- Patch Links --

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


More information about the notifications mailing list