mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
e4ebbaf59f
The Arduino Nano board is the cheapest member of the Arduino family and used the same MCU as the Arduino Uno. It differs in the form factor (the Nano is much smaller), it uses an integrated FT232RL TTL adapter instead of an ATmega16u2 to provide access to the serial console via USB, and it uses a different bootloader (which occupies 2 KiB of the 32 KiB flash instead of 0.5 KiB occupied on the Arduino Uno). This commit mostly copy pastes code from the Arduino Uno.
24 lines
643 B
Makefile
24 lines
643 B
Makefile
# define the cpu used by the Arduino Nano board
|
|
export CPU = atmega328p
|
|
|
|
# configure the terminal program
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
BAUD ?= 9600
|
|
|
|
PROGRAMMER ?= arduino
|
|
|
|
ifeq (arduino,$(PROGRAMMER))
|
|
# the Arduino Nano bootloader is 2KiB in size
|
|
BOOTLOADER_SIZE ?= 2048
|
|
# the Nano's bootloader uses 57600 baud for programming
|
|
FFLAGS_EXTRA += -b 57600
|
|
else
|
|
# not using the bootloader for programming, thus the whole flash can be used
|
|
BOOTLOADER_SIZE ?= 0
|
|
endif
|
|
|
|
ROM_RESERVED ?= $(BOOTLOADER_SIZE)
|
|
|
|
include $(RIOTBOARD)/common/arduino-atmega/Makefile.include
|