mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
8f03c7561a
The ATmega1284P can be run on a breadboard with no external components, except for a power supply and (if access to the serial is required) an USB-TTL adapter. This commit adds it as a "board".
19 lines
624 B
Makefile
19 lines
624 B
Makefile
# configure the terminal program
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
BAUD ?= 9600
|
|
ATMEGA328P_CLOCK ?=
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
# Allow overwriting programmer via env variables without affecting other boards
|
|
PROGRAMMER_BOARD_ATMEGA1284P ?= dragon_isp
|
|
# ICSP programmer to use for avrdude
|
|
PROGRAMMER ?= $(PROGRAMMER_BOARD_ATMEGA1284P)
|
|
|
|
ifneq (,$(ATMEGA1284P_CLOCK))
|
|
CFLAGS += -DCLOCK_CORECLOCK=$(ATMEGA1284P_CLOCK)
|
|
endif
|
|
|
|
include $(RIOTMAKE)/tools/avrdude.inc.mk
|
|
include $(RIOTBOARD)/common/atmega/Makefile.include
|