2019-11-01 14:07:35 +01:00
|
|
|
# use samr21-xpro as default:
|
2016-04-10 20:17:45 +02:00
|
|
|
BOARD ?= samr21-xpro
|
2023-05-12 11:31:32 +02:00
|
|
|
include ../Makefile.net_common
|
2016-04-10 20:17:45 +02:00
|
|
|
|
|
|
|
# Currently, GoMacH has only been tested and evaluated through on samr21-xpro and iotlab-m3
|
|
|
|
# nodes. Once GoMacH has also been tested through on other devices, the whitelist should
|
|
|
|
# be then accordingly extended.
|
|
|
|
BOARD_WHITELIST := samr21-xpro iotlab-m3
|
|
|
|
|
|
|
|
# Modules to include:
|
|
|
|
USEMODULE += shell
|
2022-08-16 16:35:20 +02:00
|
|
|
USEMODULE += shell_cmds_default
|
2016-04-10 20:17:45 +02:00
|
|
|
USEMODULE += ps
|
|
|
|
# include and auto-initialize all available sensors
|
|
|
|
USEMODULE += saul_default
|
|
|
|
|
|
|
|
# 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
|
2016-04-10 20:17:45 +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 GoMacH as the MAC protocol
|
|
|
|
USEMODULE += gnrc_gomach
|
|
|
|
|
2020-10-16 10:37:52 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
|
2016-04-10 20:17:45 +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=1024
|
|
|
|
endif
|
2016-04-10 20:17:45 +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
|