mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/feather-m0*: base board definition in Kconfig
All derived `feather-m0-*` boards have all features of the `feather-m0` board and `Makefile.features` of derived `feather-m0-`*` boards just include `Makefile.features` of the `feather-m0` base board. Therefore a base board definition is used in Kconfig for all `feather-m0*` boards.
This commit is contained in:
parent
3053b87a5e
commit
2800616976
@ -10,19 +10,7 @@ config BOARD
|
|||||||
config BOARD_FEATHER_M0_LORA
|
config BOARD_FEATHER_M0_LORA
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
select CPU_MODEL_SAMD21G18A
|
select BOARD_FEATHER_M0_BASE
|
||||||
select HAS_PERIPH_ADC
|
select HAVE_SX1276
|
||||||
select HAS_PERIPH_I2C
|
|
||||||
select HAS_PERIPH_PWM
|
|
||||||
select HAS_PERIPH_RTC
|
|
||||||
select HAS_PERIPH_RTT
|
|
||||||
select HAS_PERIPH_SPI
|
|
||||||
select HAS_PERIPH_TIMER
|
|
||||||
select HAS_PERIPH_UART
|
|
||||||
select HAS_PERIPH_USBDEV
|
|
||||||
select HAS_ARDUINO
|
|
||||||
select HAS_HIGHLEVEL_STDIO
|
|
||||||
|
|
||||||
select HAVE_SAUL_GPIO
|
source "$(RIOTBOARD)/feather-m0/Kconfig.feather-m0-base"
|
||||||
|
|
||||||
source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig"
|
|
||||||
|
@ -10,19 +10,7 @@ config BOARD
|
|||||||
config BOARD_FEATHER_M0_WIFI
|
config BOARD_FEATHER_M0_WIFI
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
select CPU_MODEL_SAMD21G18A
|
select BOARD_FEATHER_M0_BASE
|
||||||
select HAS_PERIPH_ADC
|
select HAVE_ATWINC15X0
|
||||||
select HAS_PERIPH_I2C
|
|
||||||
select HAS_PERIPH_PWM
|
|
||||||
select HAS_PERIPH_RTC
|
|
||||||
select HAS_PERIPH_RTT
|
|
||||||
select HAS_PERIPH_SPI
|
|
||||||
select HAS_PERIPH_TIMER
|
|
||||||
select HAS_PERIPH_UART
|
|
||||||
select HAS_PERIPH_USBDEV
|
|
||||||
select HAS_ARDUINO
|
|
||||||
select HAS_HIGHLEVEL_STDIO
|
|
||||||
|
|
||||||
select HAVE_SAUL_GPIO
|
source "$(RIOTBOARD)/feather-m0/Kconfig.feather-m0-base"
|
||||||
|
|
||||||
source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig"
|
|
||||||
|
@ -10,19 +10,6 @@ config BOARD
|
|||||||
config BOARD_FEATHER_M0
|
config BOARD_FEATHER_M0
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
select CPU_MODEL_SAMD21G18A
|
select BOARD_FEATHER_M0_BASE
|
||||||
select HAS_PERIPH_ADC
|
|
||||||
select HAS_PERIPH_I2C
|
|
||||||
select HAS_PERIPH_PWM
|
|
||||||
select HAS_PERIPH_RTC
|
|
||||||
select HAS_PERIPH_RTT
|
|
||||||
select HAS_PERIPH_SPI
|
|
||||||
select HAS_PERIPH_TIMER
|
|
||||||
select HAS_PERIPH_UART
|
|
||||||
select HAS_PERIPH_USBDEV
|
|
||||||
select HAS_ARDUINO
|
|
||||||
select HAS_HIGHLEVEL_STDIO
|
|
||||||
|
|
||||||
select HAVE_SAUL_GPIO
|
rsource "Kconfig.feather-m0-base"
|
||||||
|
|
||||||
source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig"
|
|
||||||
|
25
boards/feather-m0/Kconfig.feather-m0-base
Normal file
25
boards/feather-m0/Kconfig.feather-m0-base
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Copyright (c) 2020 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 BOARD_FEATHER_M0_BASE
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
select CPU_MODEL_SAMD21G18A
|
||||||
|
select HAS_PERIPH_ADC
|
||||||
|
select HAS_PERIPH_I2C
|
||||||
|
select HAS_PERIPH_PWM
|
||||||
|
select HAS_PERIPH_RTC
|
||||||
|
select HAS_PERIPH_RTT
|
||||||
|
select HAS_PERIPH_SPI
|
||||||
|
select HAS_PERIPH_TIMER
|
||||||
|
select HAS_PERIPH_UART
|
||||||
|
select HAS_PERIPH_USBDEV
|
||||||
|
select HAS_ARDUINO
|
||||||
|
select HAS_HIGHLEVEL_STDIO
|
||||||
|
|
||||||
|
select HAVE_SAUL_GPIO
|
||||||
|
|
||||||
|
source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig"
|
Loading…
Reference in New Issue
Block a user