2019-11-17 14:10:12 +01:00
|
|
|
# configure the terminal program
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
BAUD ?= 9600
|
2020-05-06 20:20:58 +02:00
|
|
|
ATMEGA1284P_CLOCK ?=
|
2019-11-17 14:10:12 +01:00
|
|
|
|
|
|
|
# Allow overwriting programmer via env variables without affecting other boards
|
2020-05-06 20:23:04 +02:00
|
|
|
PROGRAMMER_BOARD_ATMEGA1284P ?= atmelice
|
2019-11-17 14:10:12 +01:00
|
|
|
# ICSP programmer to use for avrdude
|
2020-11-19 18:38:41 +01:00
|
|
|
AVRDUDE_PROGRAMMER ?= $(PROGRAMMER_BOARD_ATMEGA1284P)
|
2019-11-17 14:10:12 +01:00
|
|
|
|
|
|
|
ifneq (,$(ATMEGA1284P_CLOCK))
|
|
|
|
CFLAGS += -DCLOCK_CORECLOCK=$(ATMEGA1284P_CLOCK)
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RIOTBOARD)/common/atmega/Makefile.include
|