mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
5fdbd09187
This adds support for the ATmega128RFA1 based Zigduino. The board is available on the Strasbourg site of the IoT lab for testing.
79 lines
2.8 KiB
Makefile
79 lines
2.8 KiB
Makefile
# name of your application
|
|
APPLICATION = default
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
|
BOARD ?= native
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
# Uncomment these lines if you want to use platform support from external
|
|
# repositories:
|
|
#RIOTCPU ?= $(CURDIR)/../../RIOT/thirdparty_cpu
|
|
#EXTERNAL_BOARD_DIRS ?= $(CURDIR)/../../RIOT/thirdparty_boards
|
|
|
|
# Uncomment this to enable scheduler statistics for ps:
|
|
#USEMODULE += schedstatistics
|
|
|
|
# If you want to use native with valgrind, you should recompile native
|
|
# with the target all-valgrind instead of all:
|
|
# make -B clean all-valgrind
|
|
|
|
# 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:
|
|
DEVELHELP ?= 1
|
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
|
QUIET ?= 1
|
|
|
|
# Modules to include:
|
|
USEMODULE += shell
|
|
USEMODULE += shell_commands
|
|
USEMODULE += ps
|
|
# include and auto-initialize all available sensors
|
|
USEMODULE += saul_default
|
|
|
|
BOARD_PROVIDES_NETIF := acd52832 adafruit-clue airfy-beacon atmega256rfr2-xpro \
|
|
arduino-nano-33-ble avr-rss2 b-l072z-lrwan1 cc2538dk dwm1001 fox \
|
|
derfmega128 derfmega256 hamilton iotlab-m3 iotlab-a8-m3 lobaro-lorabox lsn50 mulle microbit msba2 \
|
|
microduino-corerf native nrf51dk nrf51dongle nrf52dk nrf52840dk nrf52840-mdk nrf52840dongle nrf6310 \
|
|
nucleo-f207zg nucleo-f767zi openmote-b openmote-cc2538 pba-d-01-kw2x remote-pa \
|
|
remote-reva ruuvitag same54-xpro samr21-xpro samr30-xpro spark-core telosb thingy52 yunjia-nrf51822 z1 \
|
|
frdm-kw41z phynode-kw41z usb-kw41z openlabs-kw41z-mini openlabs-kw41z-mini-256kib zigduino
|
|
|
|
ifneq (,$(filter $(BOARD),$(BOARD_PROVIDES_NETIF)))
|
|
# 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
|
|
endif
|
|
|
|
FEATURES_OPTIONAL += periph_rtc
|
|
|
|
ifneq (,$(filter msba2,$(BOARD)))
|
|
USEMODULE += mci
|
|
USEMODULE += random
|
|
endif
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
|
|
|
ifneq (,$(filter $(BOARD),$(BOARD_PROVIDES_NETIF)))
|
|
# 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
|
|
|
|
# Set a custom channel if needed
|
|
include $(RIOTMAKE)/default-radio-settings.inc.mk
|