mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
4abc41a227
The CPU variable in the boards Makefile.include file already contains the target CPU, so there is no reason to provide it in each board again as avrdude flag. This commit automatically sets the avrdude target from the CPU variable and removes the unneeded flags.
22 lines
649 B
Makefile
22 lines
649 B
Makefile
# define the cpu used by the arduino mega2560 board
|
|
export CPU = atmega2560
|
|
|
|
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 ?= stk500v2
|
|
# configure programmer speed in baud
|
|
FFLAGS_EXTRA += -b 115200
|
|
|
|
BOOTLOADER_SIZE ?= 8K
|
|
ROM_RESERVED ?= $(BOOTLOADER_SIZE)
|
|
|
|
include $(RIOTBOARD)/common/arduino-atmega/Makefile.include
|