# name of your application APPLICATION = gomach # This has to be the absolute path to the RIOT base directory: RIOTBASE ?= $(CURDIR)/../.. # If no BOARD is found in the environment, use this default: BOARD ?= samr21-xpro # 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 # Comment this out to disable code in RIOT that does safety checking # which is not needed in a production environment but helps in the # development process: CFLAGS += -DDEVELHELP # Modules to include: USEMODULE += shell USEMODULE += shell_commands 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 USEMODULE += gnrc_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 # Use GoMacH as the MAC protocol USEMODULE += gnrc_gomach # We use only the lower layers of the GNRC network stack, hence, we can # reduce the size of the packet buffer a bit CFLAGS += -DGNRC_PKTBUF_SIZE=1024 include $(RIOTBASE)/Makefile.include # Set a custom channel if needed include $(RIOTMAKE)/default-channel.inc.mk