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

boards/adafruit-itsybitsy-m4: Model kconfig

This commit is contained in:
MrKevinWeiss 2021-12-06 09:06:12 +01:00
parent 05dd46936b
commit b6e7ab3443
No known key found for this signature in database
GPG Key ID: 3514539D7808D123
4 changed files with 25 additions and 0 deletions

View File

@ -22,7 +22,11 @@ config BOARD_ADAFRUIT_ITSYBITSY_M4
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV
select HAVE_SAUL_GPIO
select MODULE_USB_BOARD_RESET if MODULE_STDIO_CDC_ACM
select HAVE_MTD_SPI_NOR
# This specific board requires SPI_ON_QSPI for the MTD_SPI_NOR
select MODULE_PERIPH_SPI_ON_QSPI if MODULE_MTD_SPI_NOR
source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig"

View File

@ -13,3 +13,9 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_usbdev
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(BOARDDIR)/adafruit-itsybitsy-m4.config
endif

View File

@ -0,0 +1,3 @@
CONFIG_MODULE_USBUS=y
CONFIG_MODULE_USBUS_CDC_ACM=y
CONFIG_MODULE_STDIO_CDC_ACM=y

View File

@ -0,0 +1,12 @@
# Copyright (c) 2021 HAW Hamburg
#
# 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_BOARDS_COMMON_SAMDX1-ARDUINO-BOOTLOADER
bool
default y if MODULE_STDIO_CDC_ACM
depends on TEST_KCONFIG
help
Common code of samdx1 boards with an arduino bootloader