Skip to content
Snippets Groups Projects
Commit 0f155db4 authored by Hauke Petersen's avatar Hauke Petersen
Browse files

boards/arduino-atmega: move shared code to common/arduino-atmega

parent eb2b9f21
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 14 deletions
MODULE = board MODULE = board
DIRS = $(RIOTBOARD)/arduino-atmega-common DIRS = $(RIOTBOARD)/common/arduino-atmega
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
include $(RIOTBOARD)/arduino-atmega-common/Makefile.features include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
-include $(RIOTCPU)/atmega328p/Makefile.features -include $(RIOTCPU)/atmega328p/Makefile.features
# define the cpu used by the ardudino duemilanove board # define the cpu used by the ardudino duemilanove board
export CPU = atmega328p export CPU = atmega328p
USEMODULE += arduino-atmega-common USEMODULE += boards_common_arduino-atmega
#export needed for flash rule #export needed for flash rule
export PORT_LINUX ?= /dev/ttyUSB0 export PORT_LINUX ?= /dev/ttyUSB0
...@@ -14,4 +14,4 @@ export FFLAGS += -p m328p ...@@ -14,4 +14,4 @@ export FFLAGS += -p m328p
# overridden for debugging (which requires changes that require to use an ISP) # overridden for debugging (which requires changes that require to use an ISP)
export PROGRAMMER ?= arduino export PROGRAMMER ?= arduino
include $(RIOTBOARD)/arduino-atmega-common/Makefile.include include $(RIOTBOARD)/common/arduino-atmega/Makefile.include
MODULE = board MODULE = board
DIRS = $(RIOTBOARD)/arduino-atmega-common DIRS = $(RIOTBOARD)/common/arduino-atmega
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
include $(RIOTBOARD)/arduino-atmega-common/Makefile.features include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
-include $(RIOTCPU)/atmega2560/Makefile.features -include $(RIOTCPU)/atmega2560/Makefile.features
# define the cpu used by the arduino mega2560 board # define the cpu used by the arduino mega2560 board
export CPU = atmega2560 export CPU = atmega2560
USEMODULE += arduino-atmega-common USEMODULE += boards_common_arduino-atmega
#export needed for flash rule #export needed for flash rule
export PORT_LINUX ?= /dev/ttyACM0 export PORT_LINUX ?= /dev/ttyACM0
...@@ -14,4 +14,4 @@ export FFLAGS += -p m2560 ...@@ -14,4 +14,4 @@ export FFLAGS += -p m2560
# overridden for debugging (which requires changes that require to use an ISP) # overridden for debugging (which requires changes that require to use an ISP)
export PROGRAMMER ?= stk500v2 export PROGRAMMER ?= stk500v2
include $(RIOTBOARD)/arduino-atmega-common/Makefile.include include $(RIOTBOARD)/common/arduino-atmega/Makefile.include
MODULE = board MODULE = board
DIRS = $(RIOTBOARD)/arduino-atmega-common DIRS = $(RIOTBOARD)/common/arduino-atmega
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
include $(RIOTBOARD)/arduino-atmega-common/Makefile.features include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
-include $(RIOTCPU)/atmega328p/Makefile.features -include $(RIOTCPU)/atmega328p/Makefile.features
# define the cpu used by the arduino uno board # define the cpu used by the arduino uno board
export CPU = atmega328p export CPU = atmega328p
USEMODULE += arduino-atmega-common USEMODULE += boards_common_arduino-atmega
# export needed for flash rule # export needed for flash rule
export PORT_LINUX ?= /dev/ttyACM0 export PORT_LINUX ?= /dev/ttyACM0
...@@ -14,4 +14,4 @@ export FFLAGS += -p m328p ...@@ -14,4 +14,4 @@ export FFLAGS += -p m328p
# overridden for debugging (which requires changes that require to use an ISP) # overridden for debugging (which requires changes that require to use an ISP)
export PROGRAMMER ?= arduino export PROGRAMMER ?= arduino
include $(RIOTBOARD)/arduino-atmega-common/Makefile.include include $(RIOTBOARD)/common/arduino-atmega/Makefile.include
MODULE = arduino-atmega-common MODULE = boards_common_arduino-atmega
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
# include optional dependencies # include optional dependencies
include $(RIOTBOARD)/arduino-atmega-common/Makefile.dep include $(RIOTBOARD)/common/arduino-atmega/Makefile.dep
INCLUDES += -I$(RIOTBOARD)/arduino-atmega-common/include INCLUDES += -I$(RIOTBOARD)/common/arduino-atmega/include
# refine serial port information # refine serial port information
export BAUD ?= 9600 export BAUD ?= 9600
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment