2019-11-01 14:07:35 +01:00
|
|
|
# use samr21-xpro as default:
|
2017-06-21 16:41:19 +02:00
|
|
|
BOARD ?= samr21-xpro
|
2023-05-12 11:31:32 +02:00
|
|
|
include ../Makefile.net_common
|
2017-06-21 16:41:19 +02:00
|
|
|
|
|
|
|
# Currently, LWMAC is only tested and evaluated through on samr21-xpro.
|
2017-11-13 15:27:40 +01:00
|
|
|
# Once LWMAC has also been tested through on other boards, the whitelist should
|
|
|
|
# be then accordingly extended.
|
2017-06-21 16:41:19 +02:00
|
|
|
BOARD_WHITELIST := samr21-xpro
|
|
|
|
|
|
|
|
# Modules to include:
|
|
|
|
USEMODULE += shell
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2017-06-21 16:41:19 +02:00
|
|
|
USEMODULE += ps
|
|
|
|
# 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
|
2021-08-31 10:54:48 +02:00
|
|
|
USEMODULE += netdev_default
|
2017-06-21 16:41:19 +02:00
|
|
|
# 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
|
|
|
|
# Use LWMAC
|
|
|
|
USEMODULE += gnrc_lwmac
|
2017-11-13 15:27:40 +01:00
|
|
|
|
2020-10-16 10:37:52 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
|
2017-06-21 16:41:19 +02:00
|
|
|
# We use only the lower layers of the GNRC network stack, hence, we can
|
|
|
|
# reduce the size of the packet buffer a bit
|
2020-05-12 19:34:05 +02:00
|
|
|
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
|
|
|
|
ifndef CONFIG_GNRC_PKTBUF_SIZE
|
|
|
|
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=512
|
|
|
|
endif
|
2017-06-21 16:41:19 +02:00
|
|
|
|
2019-08-21 14:35:31 +02:00
|
|
|
# Set a custom channel if needed
|
2019-10-22 15:18:08 +02:00
|
|
|
include $(RIOTMAKE)/default-radio-settings.inc.mk
|