mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
21 lines
787 B
Makefile
21 lines
787 B
Makefile
|
ifneq (,$(filter netif,$(FEATURES_USED)))
|
||
|
# Use modules for networking
|
||
|
# gnrc is a meta module including all required, basic gnrc networking modules
|
||
|
USEMODULE += gnrc
|
||
|
# use the default network interface for the board
|
||
|
USEMODULE += netdev_default
|
||
|
# automatically initialize the network interface
|
||
|
USEMODULE += auto_init_gnrc_netif
|
||
|
# shell command to send L2 packets with a simple string
|
||
|
USEMODULE += gnrc_txtsnd
|
||
|
# the application dumps received packets to stdout
|
||
|
USEMODULE += gnrc_pktdump
|
||
|
|
||
|
# We use only the lower layers of the GNRC network stack, hence, we can
|
||
|
# reduce the size of the packet buffer a bit
|
||
|
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
|
||
|
ifndef CONFIG_GNRC_PKTBUF_SIZE
|
||
|
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=512
|
||
|
endif
|
||
|
endif
|