mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/nucleo: factored out nucleo64 common
This commit is contained in:
parent
7b9b383d52
commit
b4f497f5e2
@ -1,5 +1,38 @@
|
||||
# include nucleo common serial configuration
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include.serial
|
||||
# export this module and its includes
|
||||
USEMODULE += boards_common_nucleo
|
||||
INCLUDES += -I$(RIOTBOARD)/common/nucleo/include
|
||||
|
||||
# add the common header files to the include path
|
||||
INCLUDES += -I$(RIOTBOARD)/common/nucleo/include
|
||||
# configure the serial terminal
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# all Nucleo boards have an on-board ST-link v2-1 adapter
|
||||
export DEBUG_ADAPTER ?= stlink
|
||||
export STLINK_VERSION ?= 2-1
|
||||
|
||||
# select OpenOCD configuration depending on CPU type
|
||||
ifeq (,$(OPENOCD_CONFIG))
|
||||
ifeq ($(CPU),stm32f0)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f0.cfg
|
||||
else ifeq ($(CPU),stm32f1)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f1.cfg
|
||||
else ifeq ($(CPU),stm32f2)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f2.cfg
|
||||
else ifeq ($(CPU),stm32f3)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f3.cfg
|
||||
else ifeq ($(CPU),stm32f4)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f4.cfg
|
||||
else ifeq ($(CPU),stm32f7)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f7.cfg
|
||||
else ifeq ($(CPU),stm32l0)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-l0.cfg
|
||||
else ifeq ($(CPU),stm32l1)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-l1.cfg
|
||||
else ifeq ($(CPU),stm32l4)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-l4.cfg
|
||||
endif
|
||||
endif
|
||||
|
||||
# this board uses openocd
|
||||
include $(RIOTMAKE)/tools/openocd.inc.mk
|
||||
|
@ -1,36 +0,0 @@
|
||||
# define the default port depending on the host OS
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
|
||||
# setup serial terminal
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# All Nucleo boards have an on-board ST-link v2-1 adapter
|
||||
export DEBUG_ADAPTER ?= stlink
|
||||
export STLINK_VERSION ?= 2-1
|
||||
|
||||
# Choose OpenOCD board configuration depending on CPU type
|
||||
ifeq (,$(OPENOCD_CONFIG))
|
||||
ifeq ($(CPU),stm32f0)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f0.cfg
|
||||
else ifeq ($(CPU),stm32f1)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f1.cfg
|
||||
else ifeq ($(CPU),stm32f2)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f2.cfg
|
||||
else ifeq ($(CPU),stm32f3)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f3.cfg
|
||||
else ifeq ($(CPU),stm32f4)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f4.cfg
|
||||
else ifeq ($(CPU),stm32f7)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-f7.cfg
|
||||
else ifeq ($(CPU),stm32l0)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-l0.cfg
|
||||
else ifeq ($(CPU),stm32l1)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-l1.cfg
|
||||
else ifeq ($(CPU),stm32l4)
|
||||
export OPENOCD_CONFIG := $(RIOTBOARD)/common/nucleo/dist/openocd-l4.cfg
|
||||
endif
|
||||
endif
|
||||
|
||||
# this board uses openocd
|
||||
include $(RIOTMAKE)/tools/openocd.inc.mk
|
@ -1,5 +1,5 @@
|
||||
# include nucleo common serial configuration
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include.serial
|
||||
# include shared global Nucleo Makefile
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
|
||||
# add the common header files to the include path
|
||||
INCLUDES += -I$(RIOTBOARD)/common/nucleo144/include
|
||||
|
@ -1,5 +1,5 @@
|
||||
# include nucleo common serial configuration
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include.serial
|
||||
# include shared global Nucleo Makefile
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
|
||||
# add the common header files to the include path
|
||||
INCLUDES += -I$(RIOTBOARD)/common/nucleo32/include
|
||||
|
5
boards/common/nucleo64/Makefile.include
Normal file
5
boards/common/nucleo64/Makefile.include
Normal file
@ -0,0 +1,5 @@
|
||||
# include shared global Nucleo Makefile
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
|
||||
# add the common header files to the include path
|
||||
INCLUDES += -I$(RIOTBOARD)/common/nucleo64/include
|
@ -7,7 +7,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m0_1
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f0
|
||||
export CPU_MODEL = stm32f030r8
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -7,7 +7,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m0_1
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f0
|
||||
export CPU_MODEL = stm32f070rb
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -8,7 +8,7 @@ FEATURES_PROVIDED += periph_uart
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m0_1
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f0
|
||||
export CPU_MODEL = stm32f072rb
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -8,7 +8,7 @@ FEATURES_PROVIDED += periph_uart
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m0_1
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f0
|
||||
export CPU_MODEL = stm32f091rc
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -6,7 +6,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m3_1
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f1
|
||||
export CPU_MODEL = stm32f103rb
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -8,7 +8,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m4_2
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f3
|
||||
export CPU_MODEL = stm32f302r8
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -8,7 +8,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m4_2
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f3
|
||||
export CPU_MODEL = stm32f303re
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -7,7 +7,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m4_2
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f3
|
||||
export CPU_MODEL = stm32f334r8
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -9,7 +9,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m4_3
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f4
|
||||
export CPU_MODEL = stm32f401re
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f4
|
||||
export CPU_MODEL = stm32f410rb
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f4
|
||||
export CPU_MODEL = stm32f411re
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -9,7 +9,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m4_3
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32f4
|
||||
export CPU_MODEL = stm32f446re
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -7,7 +7,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m0_1
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32l0
|
||||
export CPU_MODEL = stm32l053r8
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -9,7 +9,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m0_1
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32l0
|
||||
export CPU_MODEL = stm32l073rz
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -10,7 +10,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m3_2
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32l1
|
||||
export CPU_MODEL = stm32l152re
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
@ -8,7 +8,7 @@ FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# load the common Makefile.features for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.features
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.features
|
||||
|
||||
# The board MPU family (used for grouping by the CI system)
|
||||
FEATURES_MCU_GROUP = cortex_m4_2
|
||||
|
@ -3,4 +3,4 @@ export CPU = stm32l4
|
||||
export CPU_MODEL = stm32l476rg
|
||||
|
||||
# load the common Makefile.include for Nucleo boards
|
||||
include $(RIOTBOARD)/common/nucleo/Makefile.include
|
||||
include $(RIOTBOARD)/common/nucleo64/Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user