mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
636285ebe4
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are automatically included Part of moving CPU/CPU_MODEL definition to Makefile.features to have it available before Makefile.include.
27 lines
925 B
Makefile
27 lines
925 B
Makefile
# configure the terminal program
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
# refine serial port information for pyterm
|
|
# For 8MHz F_CPU following Baudrate have good error rates
|
|
# 76923
|
|
# 38400
|
|
BAUD ?= 38400
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
# PROGRAMMER defaults to wiring which is the internal flasher via USB
|
|
# using avrdude. Can be overridden for debugging (which requires changes
|
|
# that require to use an ISP)
|
|
PROGRAMMER ?= wiring
|
|
# Serial Baud rate for flasher is configured to 500kBaud
|
|
# see /usr/include/asm-generic/termbits.h for availabel baudrates on your linux system
|
|
FFLAGS_EXTRA += -b 0010005
|
|
# avoid error if mcu signature doesn't match
|
|
FFLAGS_EXTRA += -F
|
|
|
|
# From current fuse configuration
|
|
BOOTLOADER_SIZE ?= 4K
|
|
ROM_RESERVED ?= $(BOOTLOADER_SIZE)
|
|
|
|
include $(RIOTMAKE)/tools/avrdude.inc.mk
|
|
include $(RIOTBOARD)/common/atmega/Makefile.include
|