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

Merge pull request #14189 from jia200x/pr/boards/samd21

boards/samd21-based: Model features in Kconfig
This commit is contained in:
Alexandre Abadie 2020-07-17 09:40:25 +02:00 committed by GitHub
commit 00f28a31bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 361 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# 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
default "arduino-mkr1000" if BOARD_ARDUINO_MKR1000
config BOARD_ARDUINO_MKR1000
bool
default y
select BOARD_COMMON_ARDUINO_MKR
source "$(RIOTBOARD)/common/arduino-mkr/Kconfig"

View File

@ -0,0 +1,15 @@
# 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
default "arduino-mkrfox1200" if BOARD_ARDUINO_MKRFOX1200
config BOARD_ARDUINO_MKRFOX1200
bool
default y
select BOARD_COMMON_ARDUINO_MKR
source "$(RIOTBOARD)/common/arduino-mkr/Kconfig"

View File

@ -0,0 +1,15 @@
# 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
default "arduino-mkrwan1300" if BOARD_ARDUINO_MKRWAN1300
config BOARD_ARDUINO_MKRWAN1300
bool
default y
select BOARD_COMMON_ARDUINO_MKR
source "$(RIOTBOARD)/common/arduino-mkr/Kconfig"

View File

@ -0,0 +1,15 @@
# 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
default "arduino-mkrzero" if BOARD_ARDUINO_MKRZERO
config BOARD_ARDUINO_MKRZERO
bool
default y
select BOARD_COMMON_ARDUINO_MKR
source "$(RIOTBOARD)/common/arduino-mkr/Kconfig"

View File

@ -0,0 +1,16 @@
# 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
default "arduino-zero" if BOARD_ARDUINO_ZERO
config BOARD_ARDUINO_ZERO
bool
default y
select BOARD_COMMON_ARDUINO_ZERO
source "$(RIOTBOARD)/common/arduino-zero/Kconfig"

View File

@ -0,0 +1,21 @@
# 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_COMMON_ARDUINO_MKR
bool
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_ARDUINO_PWM
select HAS_BOOTLOADER_ARDUINO

View File

@ -0,0 +1,20 @@
# 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_COMMON_ARDUINO_ZERO
bool
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_ARDUINO_PWM

View File

@ -0,0 +1,18 @@
# 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_COMMON_SODAQ
bool
select HAS_PERIPH_ADC
select HAS_PERIPH_I2C
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_BOOTLOADER_ARDUINO

23
boards/feather-m0/Kconfig Normal file
View File

@ -0,0 +1,23 @@
# 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
default "feather-m0" if BOARD_FEATHER_M0
config BOARD_FEATHER_M0
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_BOOTLOADER_ARDUINO

22
boards/hamilton/Kconfig Normal file
View File

@ -0,0 +1,22 @@
# 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
default "hamilton" if BOARD_HAMILTON
config BOARD_HAMILTON
bool
default y
select CPU_MODEL_SAMR21E18A
select HAS_PERIPH_ADC
select HAS_PERIPH_GPIO
select HAS_PERIPH_GPIO_IRQ
select HAS_PERIPH_I2C
select HAS_PERIPH_PWM
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER

View File

@ -0,0 +1,22 @@
# 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
default "samd21-xpro" if BOARD_SAMD21_XPRO
config BOARD_SAMD21_XPRO
bool
default y
select CPU_MODEL_SAMD21J18A
select HAS_PERIPH_ADC
select HAS_PERIPH_DAC
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

View File

@ -0,0 +1,21 @@
# 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
default "sensebox_samd21" if BOARD_SENSEBOX_SAMD21
config BOARD_SENSEBOX_SAMD21
bool
default y
select CPU_MODEL_SAMD21G18A
select HAS_PERIPH_ADC
select HAS_PERIPH_I2C
select HAS_PERIPH_RTC
select HAS_PERIPH_RTT
select HAS_PERIPH_SPI
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_USBDEV

23
boards/serpente/Kconfig Normal file
View File

@ -0,0 +1,23 @@
# 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
default "serpente" if BOARD_SERPENTE
config BOARD_SERPENTE
bool
default y
select CPU_MODEL_SAMD21E18A
select HAS_BOOTLOADER_ARDUINO
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

View File

@ -0,0 +1,18 @@
# 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
default "sodaq-autonomo" if BOARD_SODAQ_AUTONOMO
config BOARD_SODAQ_AUTONOMO
bool
default y
select BOARD_COMMON_SODAQ
select CPU_MODEL_SAMD21J18A
select HAS_PERIPH_PWM
select HAS_ARDUINO_PWM
source "$(RIOTBOARD)/common/sodaq/Kconfig"

View File

@ -0,0 +1,16 @@
# 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
default "sodaq-explorer" if BOARD_SODAQ_EXPLORER
config BOARD_SODAQ_EXPLORER
bool
default y
select BOARD_COMMON_SODAQ
select CPU_MODEL_SAMD21J18A
source "$(RIOTBOARD)/common/sodaq/Kconfig"

16
boards/sodaq-one/Kconfig Normal file
View File

@ -0,0 +1,16 @@
# 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
default "sodaq-one" if BOARD_SODAQ_ONE
config BOARD_SODAQ_ONE
bool
default y
select BOARD_COMMON_SODAQ
select CPU_MODEL_SAMD21G18A
source "$(RIOTBOARD)/common/sodaq/Kconfig"

View File

@ -0,0 +1,16 @@
# 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
default "sodaq-sara-aff" if BOARD_SODAQ_SARA_AFF
config BOARD_SODAQ_SARA_AFF
bool
default y
select BOARD_COMMON_SODAQ
select CPU_MODEL_SAMD21J18A
source "$(RIOTBOARD)/common/sodaq/Kconfig"

View File

@ -0,0 +1,16 @@
# 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
default "sodaq-sara-sff" if BOARD_SODAQ_SARA_SFF
config BOARD_SODAQ_SARA_SFF
bool
default y
select BOARD_COMMON_SODAQ
select CPU_MODEL_SAMD21G18A
source "$(RIOTBOARD)/common/sodaq/Kconfig"

17
boards/wemos-zero/Kconfig Normal file
View File

@ -0,0 +1,17 @@
# 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
default "wemos-zero" if BOARD_WEMOS_ZERO
config BOARD_WEMOS_ZERO
bool
default y
select BOARD_COMMON_ARDUINO_ZERO
select HAS_BOOTLOADER_ARDUINO
source "$(RIOTBOARD)/common/arduino-zero/Kconfig"

View File

@ -8,9 +8,14 @@ BOARD_WHITELIST += 6lowpan-clicker \
arduino-duemilanove \
arduino-leonardo \
arduino-mega2560 \
arduino-mkr1000 \
arduino-mkrfox1200 \
arduino-mkrwan1300 \
arduino-mkrzero \
arduino-nano \
arduino-nano-33-ble \
arduino-uno \
arduino-zero \
atmega1284p \
atmega256rfr2-xpro \
atmega328p \
@ -45,11 +50,13 @@ BOARD_WHITELIST += 6lowpan-clicker \
esp8266-olimex-mod \
esp8266-sparkfun-thing \
f4vi1 \
feather-m0 \
feather-nrf52840 \
firefly \
fox \
frdm-k22f \
frdm-k64f \
hamilton \
hifive1 \
hifive1b \
ikea-tradfri \
@ -138,6 +145,7 @@ BOARD_WHITELIST += 6lowpan-clicker \
remote-reva \
remote-revb \
ruuvitag \
samd21-xpro \
same54-xpro \
saml10-xpro \
saml11-xpro \
@ -146,12 +154,19 @@ BOARD_WHITELIST += 6lowpan-clicker \
samr30-xpro \
samr34-xpro \
seeeduino_arch-pro \
sensebox_samd21 \
serpente \
slstk3401a \
slstk3402a \
sltb001a \
slwstk6000b-slwrb4150a \
slwstk6000b-slwrb4162a \
slwstk6220a \
sodaq-autonomo \
sodaq-explorer \
sodaq-one \
sodaq-sara-aff \
sodaq-sara-sff \
spark-core \
stk3600 \
stk3700 \
@ -173,6 +188,7 @@ BOARD_WHITELIST += 6lowpan-clicker \
usb-kw41z \
waspmote-pro \
weact-f411ce \
wemos-zero \
yunjia-nrf51822 \
z1
#