1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/common/nrf51: add initial Kconfig modeling

- add airfy-beacon
- add calliope-mini
- add microbit
- add nrf51dk
- add nrf51dongle
- add nrf6310
- add yunjia-nrf51822
This commit is contained in:
Francisco Molina 2021-11-26 08:49:00 +01:00
parent 56b14d5e80
commit cfb53fef39
9 changed files with 40 additions and 0 deletions

View File

@ -22,6 +22,7 @@ dwm1001
hifive1
mbed_lpc1768
mega-xplained
microbit
native
nrf52840dk
nucleo-f072rb

View File

@ -16,5 +16,6 @@ config BOARD_AIRFY_BEACON
select HAS_PERIPH_I2C
select HAS_PERIPH_SPI
select HAS_PERIPH_UART
select MODULE_BOARDS_COMMON_NRF51 if TEST_KCONFIG
source "$(RIOTBOARD)/common/nrf51/Kconfig"

View File

@ -16,4 +16,8 @@ config BOARD_CALLIOPE_MINI
select HAS_PERIPH_UART
select HAS_PERIPH_PWM
select HAVE_SAUL_GPIO
select HAVE_BMX055
source "$(RIOTBOARD)/common/microbit/Kconfig"
source "$(RIOTBOARD)/common/nrf51/Kconfig"

View File

@ -0,0 +1,11 @@
# Copyright (c) 2021 Inria
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
config MODULE_MICROBIT
bool "BBC micro:bit specific LED matrix handling"
select MODULE_ZTIMER
select MODULE_ZTIMER_USEC
select MODULE_MINEPLEX

View File

@ -8,3 +8,15 @@ config BOARD_COMMON_NRF51
bool
select HAS_PERIPH_RTT
select HAS_PERIPH_TIMER
select HAVE_SAUL_NRF_TEMPERATURE
config MODULE_BOARDS_COMMON_NRF51
bool
depends on TEST_KCONFIG
help
Common code of NRF51 boards
choice NRF5X_RADIO_BACKEND
default MODULE_NRFMIN
endchoice

View File

@ -15,4 +15,8 @@ config BOARD_MICROBIT
select HAS_PERIPH_I2C
select HAS_PERIPH_UART
select HAVE_SAUL_GPIO
select HAVE_MMA8X5X
source "$(RIOTBOARD)/common/microbit/Kconfig"
source "$(RIOTBOARD)/common/nrf51/Kconfig"

View File

@ -18,4 +18,8 @@ config BOARD_NRF51DK
select HAS_PERIPH_UART_HW_FC
select HAS_VDD_LC_FILTER_REG1
select HAVE_SAUL_GPIO
select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC
source "$(RIOTBOARD)/common/nrf51/Kconfig"

View File

@ -15,4 +15,6 @@ config BOARD_NRF51DONGLE
select HAS_PERIPH_UART
select HAS_PERIPH_UART_HW_FC
select MODULE_PERIPH_UART_HW_FC if TEST_KCONFIG && HAS_PERIPH_UART_HW_FC
source "$(RIOTBOARD)/common/nrf51/Kconfig"

View File

@ -16,5 +16,6 @@ config BOARD_YUNJIA_NRF51822
select HAS_PERIPH_I2C
select HAS_PERIPH_SPI
select HAS_PERIPH_UART
select MODULE_BOARDS_COMMON_NRF51 if TEST_KCONFIG
source "$(RIOTBOARD)/common/nrf51/Kconfig"