Skip to content

Commit b903161

Browse files
committed
boards/seeedstudio-xiao-nrf52840: move files to common folder
1 parent 35afc64 commit b903161

File tree

15 files changed

+50
-33
lines changed

15 files changed

+50
-33
lines changed

boards/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ DIRS += $(RIOTBOARD)/common/init
66
ifneq (,$(filter boards_common_adafruit-nrf52-bootloader,$(USEMODULE)))
77
DIRS += $(RIOTBOARD)/common/adafruit-nrf52-bootloader
88
endif
9+
ifneq (,$(filter boards_common_seeedstudio-xiao-nrf52840,$(USEMODULE)))
10+
DIRS += $(RIOTBOARD)/common/seeedstudio-xiao-nrf52840
11+
endif
912

1013
include $(RIOTBASE)/Makefile.base

boards/Makefile.dep

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
ifneq (,$(filter boards_common_adafruit-nrf52-bootloader,$(USEMODULE)))
33
include $(RIOTBOARD)/common/adafruit-nrf52-bootloader/Makefile.dep
44
endif
5+
ifneq (,$(filter boards_common_seeedstudio-xiao-nrf52840,$(USEMODULE)))
6+
include $(RIOTBOARD)/common/seeedstudio-xiao-nrf52840/Makefile.dep
7+
endif

boards/Makefile.features

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
# SORT THIS ALPHABETICALLY BY COMMON BOARD NAME!
2+
ifneq (,$(filter boards_common_seeedstudio-xiao-nrf52840,$(USEMODULE)))
3+
include $(RIOTBOARD)/common/seeedstudio-xiao-nrf52840/Makefile.features
4+
endif

boards/Makefile.include

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
ifneq (,$(filter boards_common_adafruit-nrf52-bootloader,$(USEMODULE)))
33
include $(RIOTBOARD)/common/adafruit-nrf52-bootloader/Makefile.include
44
endif
5+
ifneq (,$(filter boards_common_seeedstudio-xiao-nrf52840,$(USEMODULE)))
6+
include $(RIOTBOARD)/common/seeedstudio-xiao-nrf52840/Makefile.include
7+
endif
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MODULE = boards_common_seeedstudio-xiao-nrf52840
2+
3+
include $(RIOTBASE)/Makefile.base
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ifneq (,$(filter saul_default,$(USEMODULE)))
2+
USEMODULE += saul_gpio
3+
endif
4+
5+
ifneq (,$(filter mtd,$(USEMODULE)))
6+
USEMODULE += mtd_spi_nor
7+
endif
8+
9+
# default to using littlefs2 on the external flash
10+
ifneq (,$(filter vfs_default,$(USEMODULE)))
11+
USEPKG += littlefs2
12+
USEMODULE += mtd
13+
endif
14+
15+
USEMODULE += boards_common_adafruit-nrf52-bootloader
16+
17+
# include common nrf52 dependencies
18+
include $(RIOTBOARD)/common/nrf52/Makefile.dep
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Put defined MCU peripherals here (in alphabetical order)
2+
FEATURES_PROVIDED += periph_i2c
3+
FEATURES_PROVIDED += periph_spi
4+
FEATURES_PROVIDED += periph_uart
5+
FEATURES_PROVIDED += periph_usbdev
6+
7+
# Various other features (if any)
8+
FEATURES_PROVIDED += arduino_analog
9+
FEATURES_PROVIDED += arduino_i2c
10+
FEATURES_PROVIDED += arduino_pins
11+
FEATURES_PROVIDED += arduino_spi
12+
FEATURES_PROVIDED += arduino_uart
13+
FEATURES_PROVIDED += highlevel_stdio
14+
FEATURES_PROVIDED += xiao_shield
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# add the common header files to the include path
2+
INCLUDES += -I$(RIOTBOARD)/common/seeedstudio-xiao-nrf52840/include

boards/seeedstudio-xiao-nrf52840/include/arduino_iomap.h renamed to boards/common/seeedstudio-xiao-nrf52840/include/arduino_iomap.h

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)