2017-02-02 20:05:53 +01:00
|
|
|
# define the cpu used by the ardudino duemilanove board
|
|
|
|
export CPU = atmega328p
|
2016-09-05 21:12:47 +02:00
|
|
|
|
2017-02-02 20:05:53 +01:00
|
|
|
USEMODULE += arduino-atmega-common
|
|
|
|
|
|
|
|
# add arduino-atmega-common include path
|
|
|
|
INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include
|
2016-09-05 21:12:47 +02:00
|
|
|
|
|
|
|
#export needed for flash rule
|
2017-02-02 18:01:55 +01:00
|
|
|
export PORT_LINUX ?= /dev/ttyUSB0
|
|
|
|
export PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
2017-02-02 20:05:53 +01:00
|
|
|
export PROGRAMMER_SPEED ?= 57600
|
|
|
|
|
|
|
|
export FFLAGS += -p m328p
|
|
|
|
|
|
|
|
# PROGRAMMER defaults to arduino which is the internal flasher via USB. Can be
|
|
|
|
# overridden for debugging (which requires changes that require to use an ISP)
|
|
|
|
export PROGRAMMER ?= arduino
|
2016-09-05 21:12:47 +02:00
|
|
|
|
2017-02-02 20:05:53 +01:00
|
|
|
include $(RIOTBOARD)/arduino-atmega-common/Makefile.include
|