mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
00965e3a40
The default channel configuration is managed within the Makefiles of many examples and tests. This commit moves the default channel logic to `makefiles/default-channel.ink.mk` to ease maintenance. All Makefiles that previously managed the default channel configuration themself have been updated to include that file. The default channel configuration of the cc110x has been added
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# name of your application
|
|
APPLICATION = lwmac
|
|
|
|
# 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, LWMAC is only tested and evaluated through on samr21-xpro.
|
|
# Once LWMAC has also been tested through on other boards, the whitelist should
|
|
# be then accordingly extended.
|
|
BOARD_WHITELIST := samr21-xpro
|
|
|
|
# Modules to include:
|
|
USEMODULE += shell
|
|
USEMODULE += shell_commands
|
|
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
|
|
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 LWMAC
|
|
USEMODULE += gnrc_lwmac
|
|
|
|
# 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=512
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
# Set a custom channel if needed
|
|
include $(RIOTMAKE)/default-channel.inc.mk
|