2018-02-27 14:05:36 +01:00
|
|
|
# define the cpu used by the jiminy board
|
|
|
|
export CPU = atmega256rfr2
|
|
|
|
|
2018-05-15 02:31:33 +02:00
|
|
|
# configure the terminal program
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
2018-02-27 14:05:36 +01:00
|
|
|
# refine serial port information for pyterm
|
|
|
|
# For 8MHz F_CPU following Baudrate have good error rates
|
|
|
|
# 76923
|
|
|
|
# 38400
|
2018-05-15 02:31:33 +02:00
|
|
|
BAUD ?= 38400
|
2018-05-15 02:16:27 +02:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2018-02-27 14:05:36 +01:00
|
|
|
|
2018-05-15 02:31:33 +02:00
|
|
|
# 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
|
2018-02-27 14:05:36 +01:00
|
|
|
|
2018-08-16 19:15:05 +02:00
|
|
|
# From current fuse configuration
|
|
|
|
BOOTLOADER_SIZE ?= 4K
|
|
|
|
ROM_RESERVED ?= $(BOOTLOADER_SIZE)
|
|
|
|
|
2018-05-15 02:16:27 +02:00
|
|
|
include $(RIOTMAKE)/tools/avrdude.inc.mk
|
2019-02-17 14:05:48 +01:00
|
|
|
include $(RIOTBOARD)/common/atmega/Makefile.include
|