mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards: model nrf52 boards
This commit is contained in:
parent
76b7069779
commit
766bfeace4
@ -16,4 +16,6 @@ config BOARD_ACD52832
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_UART
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig"
|
||||
|
@ -18,4 +18,11 @@ config BOARD_ADAFRUIT_CLUE
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_HIGHLEVEL_STDIO
|
||||
|
||||
select HAVE_APDS9960
|
||||
select HAVE_BMP280_I2C
|
||||
select HAVE_ILI9341
|
||||
select HAVE_LIS3MDL
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_SHT3X
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -9,4 +9,10 @@ FEATURES_PROVIDED += periph_usbdev
|
||||
# Various other features (if any)
|
||||
FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1,$(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTBOARD)/common/nrf52/nrf52_bootloader.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -18,4 +18,6 @@ config BOARD_ADAFRUIT_ITSYBITSY_NRF52
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_HIGHLEVEL_STDIO
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -9,4 +9,10 @@ FEATURES_PROVIDED += periph_usbdev
|
||||
# Various other features (if any)
|
||||
FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1,$(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTBOARD)/common/nrf52/nrf52_bootloader.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -18,4 +18,6 @@ config BOARD_ARDUINO_NANO_33_BLE
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_HIGHLEVEL_STDIO
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -9,4 +9,10 @@ FEATURES_PROVIDED += periph_usbdev
|
||||
# Various other features (if any)
|
||||
FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1,$(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTBOARD)/common/nrf52/nrf52_bootloader.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -11,4 +11,28 @@ config BOARD_COMMON_E104_BT50XXA_TB
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_UART
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select MODULE_BOARDS_COMMON_E104_BT50XXA_TB if TEST_KCONFIG
|
||||
|
||||
config MODULE_BOARDS_COMMON_E104_BT50XXA_TB
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
help
|
||||
common code of e104-bt50xxa-tb boards
|
||||
|
||||
config MODULE_BOARD_SOFTWARE_RESET
|
||||
bool "Enable softare reset button"
|
||||
default y
|
||||
depends on HAS_PERIPH_GPIO
|
||||
depends on HAS_PERIPH_GPIO_IRQ
|
||||
depends on HAS_PERIPH_PM
|
||||
depends on TEST_KCONFIG
|
||||
select MODULE_PERIPH_GPIO
|
||||
select MODULE_PERIPH_GPIO_IRQ
|
||||
select MODULE_PERIPH_PM
|
||||
|
||||
choice NRF5X_RADIO_BACKEND
|
||||
default MODULE_NRFMIN
|
||||
endchoice
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
4
boards/common/nrf52/nrf52_bootloader.config
Normal file
4
boards/common/nrf52/nrf52_bootloader.config
Normal file
@ -0,0 +1,4 @@
|
||||
CONFIG_MODULE_USBUS=y
|
||||
CONFIG_MODULE_USBUS_CDC_ACM=y
|
||||
CONFIG_MODULE_STDIO_CDC_ACM=y
|
||||
CONFIG_MODULE_USB_BOARD_RESET=y
|
@ -17,6 +17,8 @@ config BOARDS_COMMON_NRF52XXXDK
|
||||
|
||||
config MODULE_BOARDS_COMMON_NRF52XXXDK
|
||||
bool
|
||||
default y
|
||||
depends on TEST_KCONFIG
|
||||
help
|
||||
Common code for boards based on nrf52xxxdk.
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -12,8 +12,20 @@ config BOARD_COMMON_PARTICLE_MESH
|
||||
select HAS_PERIPH_PWM
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_PERIPH_UART_HW_FC
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_HIGHLEVEL_STDIO
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_SAUL_PWM
|
||||
|
||||
select MODULE_BOARDS_COMMON_PARTICLE_MESH if TEST_KCONFIG
|
||||
|
||||
config MODULE_BOARDS_COMMON_PARTICLE_MESH
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
help
|
||||
Common code for particle-mesh boards
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -10,7 +10,12 @@ FEATURES_PROVIDED += periph_usbdev
|
||||
FEATURES_PROVIDED += vdd_lc_filter_reg1
|
||||
|
||||
# Various other features (if any)
|
||||
|
||||
FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1,$(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTBOARD)/common/nrf52/nrf52_bootloader.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -16,6 +16,7 @@ config BOARD_DWM1001
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
select HAVE_LIS2DH12
|
||||
|
||||
select HAVE_LIS2DH12_SPI
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -1,5 +1,5 @@
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += lis2dh12
|
||||
USEMODULE += lis2dh12_spi
|
||||
endif
|
||||
|
||||
# include common nrf52 dependencies
|
||||
|
@ -18,4 +18,6 @@ config BOARD_FEATHER_NRF52840
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_HIGHLEVEL_STDIO
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -9,4 +9,10 @@ FEATURES_PROVIDED += periph_usbdev
|
||||
# Various other features (if any)
|
||||
FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1,$(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTBOARD)/common/nrf52/nrf52_bootloader.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -18,5 +18,7 @@ config BOARD_MICROBIT_V2
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/microbit/Kconfig"
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -16,4 +16,6 @@ config BOARD_NRF52832_MDK
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -17,4 +17,7 @@ config BOARD_NRF52840_MDK_DONGLE
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_HIGHLEVEL_STDIO
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_SAUL_PWM
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -8,4 +8,10 @@ FEATURES_PROVIDED += periph_usbdev
|
||||
# Various other features (if any)
|
||||
FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1,$(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTBOARD)/common/nrf52/nrf52_bootloader.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -18,4 +18,6 @@ config BOARD_NRF52840_MDK
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -17,4 +17,6 @@ config BOARD_NRF52840DK
|
||||
select HAS_VDD_LC_FILTER_REG0
|
||||
select HAVE_MTD_SPI_NOR
|
||||
|
||||
select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig"
|
||||
|
@ -21,4 +21,8 @@ config BOARD_NRF52840DONGLE
|
||||
select HAS_VDD_LC_FILTER_REG0
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_SAUL_PWM
|
||||
select HAVE_SAUL_NRF_VDDH
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -12,4 +12,10 @@ FEATURES_PROVIDED += vdd_lc_filter_reg1
|
||||
# Various other features (if any)
|
||||
FEATURES_PROVIDED += highlevel_stdio
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1,$(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTBOARD)/common/nrf52/nrf52_bootloader.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
@ -13,4 +13,6 @@ config BOARD_NRF52DK
|
||||
select BOARDS_COMMON_NRF52XXXDK
|
||||
select CPU_MODEL_NRF52832XXAA
|
||||
|
||||
select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig"
|
||||
|
@ -11,5 +11,6 @@ config BOARD_PARTICLE_ARGON
|
||||
bool
|
||||
default y
|
||||
select BOARD_COMMON_PARTICLE_MESH
|
||||
select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC && MODULE_PERIPH_UART
|
||||
|
||||
source "$(RIOTBOARD)/common/particle-mesh/Kconfig"
|
||||
|
@ -11,5 +11,6 @@ config BOARD_PARTICLE_BORON
|
||||
bool
|
||||
default y
|
||||
select BOARD_COMMON_PARTICLE_MESH
|
||||
select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC && MODULE_PERIPH_UART
|
||||
|
||||
source "$(RIOTBOARD)/common/particle-mesh/Kconfig"
|
||||
|
@ -16,4 +16,7 @@ config BOARD_PINETIME
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
|
||||
select HAVE_ILI9341
|
||||
select HAVE_MTD_SPI_NOR
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -6,4 +6,10 @@ FEATURES_PROVIDED += periph_spi
|
||||
#FEATURES_PROVIDED += periph_uart
|
||||
FEATURES_PROVIDED += vdd_lc_filter_reg1
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1, $(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(BOARDDIR)/pinetime.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
1
boards/pinetime/pinetime.config
Normal file
1
boards/pinetime/pinetime.config
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MODULE_STDIO_RTT=y
|
@ -18,4 +18,7 @@ config BOARD_REEL
|
||||
select HAS_PERIPH_USBDEV
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
|
||||
select HAVE_MMA8X5X
|
||||
select HAVE_SAUL_GPIO
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -16,4 +16,10 @@ config BOARD_RUUVITAG
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
select HAVE_SAUL_GPIO
|
||||
select HAVE_BME280_SPI
|
||||
select HAVE_LIS2DH12_SPI
|
||||
|
||||
select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig"
|
||||
|
@ -5,4 +5,10 @@ FEATURES_PROVIDED += periph_spi
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
FEATURES_PROVIDED += vdd_lc_filter_reg1
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1,$(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(BOARDDIR)/ruuvitag.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
1
boards/ruuvitag/ruuvitag.config
Normal file
1
boards/ruuvitag/ruuvitag.config
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MODULE_STDIO_RTT=y
|
@ -16,4 +16,8 @@ config BOARD_THINGY52
|
||||
select HAS_PERIPH_UART
|
||||
select HAS_VDD_LC_FILTER_REG1
|
||||
|
||||
select HAVE_LPS22HB
|
||||
select HAVE_LIS2DH12_I2C
|
||||
select HAVE_HTS221
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52/Kconfig"
|
||||
|
@ -5,4 +5,10 @@ FEATURES_PROVIDED += periph_i2c
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
FEATURES_PROVIDED += vdd_lc_filter_reg1
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1, $(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(BOARDDIR)/thingy52.config
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.features
|
||||
|
1
boards/thingy52/thingy52.config
Normal file
1
boards/thingy52/thingy52.config
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MODULE_STDIO_RTT=y
|
@ -19,5 +19,12 @@ config MODULE_PERIPH_SPI
|
||||
config MODULE_SAUL_NRF_VDDH
|
||||
bool "Internal Voltage Sensor"
|
||||
depends on HAS_PERIPH_ADC
|
||||
select MODULE_PERIPH_ADC
|
||||
|
||||
endif # TEST_KCONFIG
|
||||
|
||||
config HAVE_SAUL_NRF_VDDH
|
||||
bool
|
||||
select MODULE_SAUL_NRF_VDDH if MODULE_SAUL_DEFAULT
|
||||
help
|
||||
Indicates that internal voltage sensor is present.
|
||||
|
@ -18,4 +18,6 @@ config BOARD_NRF52840DK
|
||||
select HAS_VDD_LC_FILTER_REG0
|
||||
select HAVE_MTD_SPI_NOR
|
||||
|
||||
select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig"
|
||||
|
Loading…
Reference in New Issue
Block a user