2016-03-20 14:36:15 +01:00
|
|
|
# define the cpu used by the waspmote pro board
|
|
|
|
export CPU = atmega1281
|
|
|
|
|
2018-08-16 19:15:05 +02:00
|
|
|
# Bootloader uses stk500v1 protocol, which usually is implemented in
|
|
|
|
# bootloaders of 2K size.
|
|
|
|
# http://www.libelium.com/products/waspmote/hardware/
|
|
|
|
BOOTLOADER_SIZE ?= 2K
|
|
|
|
ROM_RESERVED ?= $(BOOTLOADER_SIZE)
|
|
|
|
|
2017-05-18 15:46:38 +02:00
|
|
|
# configure the terminal program
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*)))
|
|
|
|
BAUD ?= 9600
|
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
|
2018-05-15 02:31:33 +02:00
|
|
|
# PROGRAMMER defaults to stk500v1 which is the internal flasher via USB
|
|
|
|
# using avrdude. Can be overridden for debugging (which requires changes
|
|
|
|
# that require to use an ISP)
|
|
|
|
PROGRAMMER ?= stk500v1
|
|
|
|
# configure programmer speed in baud
|
|
|
|
FFLAGS_EXTRA += -b 115200
|
|
|
|
# avoid error if mcu signature doesn't match
|
|
|
|
FFLAGS_EXTRA += -F
|
2016-03-20 14:36:15 +01:00
|
|
|
|
2018-05-15 02:31:33 +02:00
|
|
|
include $(RIOTMAKE)/tools/avrdude.inc.mk
|
2019-02-17 14:05:48 +01:00
|
|
|
include $(RIOTBOARD)/common/atmega/Makefile.include
|