mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
97a6543c10
This gets rid of a long list of boards with network interfaces and instead let's boards (or MCUs with peripheral network interfaces) provide the netif feature. The apps that before used the long list are not depending on the feature instead (in case of the default example, this is an optional dependency). Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de> Co-authored-by: mewen.berthelot <mewen.berthelot@orange.com>
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
|