mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
076d5bda11
The following features were tested (briefly): * UART (the first) * I2C using a BMP180 on a SODAQ TPH board * SPI0, connected to the on-board serial data flash (only DevID was read using the periph_spi test program) * xtimer is working (it's the same code as in samr21) boards/sodaq-autonomo: Disable the "big" unittests because it does not fit
32 lines
1012 B
Makefile
32 lines
1012 B
Makefile
# define the cpu used by SODAQ Autonomo board
|
|
export CPU = samd21
|
|
export CPU_MODEL = samd21j18a
|
|
CFLAGS += -D__SAMD21J18A__
|
|
|
|
# set default port depending on operating system
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
export OFLAGS = -O binary
|
|
|
|
# setup the boards dependencies
|
|
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|
|
|
|
# setup serial terminal
|
|
include $(RIOTBOARD)/Makefile.include.serial
|
|
|
|
# Add board selector (USB serial) to OpenOCD options if specified.
|
|
# Use /dist/tools/usb-serial/list-ttys.sh to find out serial number.
|
|
# Usage: SERIAL="AAA..." BOARD="sodaq-autonomo" make flash
|
|
ifneq (,$(SERIAL))
|
|
export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)"
|
|
SERIAL_TTY = $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh $(SERIAL))
|
|
ifeq (,$(SERIAL_TTY))
|
|
$(error Did not find a device with serial $(SERIAL))
|
|
endif
|
|
PORT_LINUX := $(SERIAL_TTY)
|
|
endif
|
|
|
|
# this board uses openocd
|
|
include $(RIOTBOARD)/Makefile.include.openocd
|