mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/arduino-atmega: move shared code to common/arduino-atmega
This commit is contained in:
parent
eb2b9f2169
commit
0f155db499
@ -1,3 +0,0 @@
|
|||||||
MODULE = arduino-atmega-common
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
|
@ -1,5 +1,5 @@
|
|||||||
MODULE = board
|
MODULE = board
|
||||||
|
|
||||||
DIRS = $(RIOTBOARD)/arduino-atmega-common
|
DIRS = $(RIOTBOARD)/common/arduino-atmega
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
include $(RIOTBOARD)/arduino-atmega-common/Makefile.features
|
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
|
||||||
|
|
||||||
-include $(RIOTCPU)/atmega328p/Makefile.features
|
-include $(RIOTCPU)/atmega328p/Makefile.features
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# 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
|
|||||||
# 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
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
MODULE = board
|
MODULE = board
|
||||||
|
|
||||||
DIRS = $(RIOTBOARD)/arduino-atmega-common
|
DIRS = $(RIOTBOARD)/common/arduino-atmega
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
include $(RIOTBOARD)/arduino-atmega-common/Makefile.features
|
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
|
||||||
|
|
||||||
-include $(RIOTCPU)/atmega2560/Makefile.features
|
-include $(RIOTCPU)/atmega2560/Makefile.features
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# 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
|
|||||||
# 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
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
MODULE = board
|
MODULE = board
|
||||||
|
|
||||||
DIRS = $(RIOTBOARD)/arduino-atmega-common
|
DIRS = $(RIOTBOARD)/common/arduino-atmega
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
include $(RIOTBOARD)/arduino-atmega-common/Makefile.features
|
include $(RIOTBOARD)/common/arduino-atmega/Makefile.features
|
||||||
|
|
||||||
-include $(RIOTCPU)/atmega328p/Makefile.features
|
-include $(RIOTCPU)/atmega328p/Makefile.features
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# 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
|
|||||||
# 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
|
||||||
|
3
boards/common/arduino-atmega/Makefile
Normal file
3
boards/common/arduino-atmega/Makefile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MODULE = boards_common_arduino-atmega
|
||||||
|
|
||||||
|
include $(RIOTBASE)/Makefile.base
|
@ -1,7 +1,7 @@
|
|||||||
# 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
|
Loading…
Reference in New Issue
Block a user