mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
1a98d64cd5
Leverages common flasher (avrdude) and removes unnecessary exports. Moreover, a reuse of serial.inc.mk is perfomed from the same atmega_common/Makefile.include
24 lines
691 B
Makefile
24 lines
691 B
Makefile
# define the cpu used by the arduino uno board
|
|
export CPU = atmega328p
|
|
|
|
USEMODULE += boards_common_arduino-atmega
|
|
|
|
# configure the terminal program
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
BAUD ?= 9600
|
|
|
|
# PROGRAMMER defaults to stk500v2 which is the internal flasher via USB
|
|
# using avrdude. Can be overridden for debugging (which requires changes
|
|
# that require to use an ISP)
|
|
PROGRAMMER ?= arduino
|
|
# set mcu model for avrdude
|
|
FFLAGS += -p m328p
|
|
# configure programmer speed in baud
|
|
FFLAGS_EXTRA += -b 115200
|
|
|
|
BOOTLOADER_SIZE ?= 512
|
|
ROM_RESERVED ?= $(BOOTLOADER_SIZE)
|
|
|
|
include $(RIOTBOARD)/common/arduino-atmega/Makefile.include
|