mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
boards/arduino-uno: Updates board to comply with refactored arduino-atmega-common structure
This commit is contained in:
parent
7e79e85f17
commit
a06aa7bd0e
@ -1,5 +1,5 @@
|
||||
MODULE = board
|
||||
|
||||
DIRS = $(RIOTBOARD)/arduino-common
|
||||
DIRS = $(RIOTBOARD)/arduino-atmega-common
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
@ -1 +1 @@
|
||||
include $(RIOTBOARD)/arduino-common/Makefile.features
|
||||
include $(RIOTBOARD)/arduino-atmega-common/Makefile.features
|
||||
|
@ -1,10 +1,19 @@
|
||||
USEMODULE += arduino-common
|
||||
# define the cpu used by the arduino uno board
|
||||
export CPU = atmega328p
|
||||
|
||||
# add arduino-common include path
|
||||
INCLUDES += -I$(RIOTBOARD)/arduino-common/include
|
||||
USEMODULE += arduino-atmega-common
|
||||
|
||||
# add arduino-atmega-common include path
|
||||
INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include
|
||||
|
||||
# export needed for flash rule
|
||||
export LINUX_PORT = /dev/ttyACM0
|
||||
export PROGRAMMER_SPEED = 115200
|
||||
export LINUX_PORT ?= /dev/ttyACM0
|
||||
export PROGRAMMER_SPEED ?= 115200
|
||||
|
||||
include $(RIOTBOARD)/arduino-common/Makefile.include
|
||||
export FFLAGS += -p m328p
|
||||
|
||||
# PROGRAMMER defaults to arduino which is the internal flasher via USB. Can be
|
||||
# overridden for debugging (which requires changes that require to use an ISP)
|
||||
export PROGRAMMER ?= arduino
|
||||
|
||||
include $(RIOTBOARD)/arduino-atmega-common/Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user