Skip to content

Commit

Permalink
Merge pull request #14189 from jia200x/pr/boards/samd21
Browse files Browse the repository at this point in the history
boards/samd21-based: Model features in Kconfig
  • Loading branch information
aabadie authored Jul 17, 2020
2 parents a1bde63 + 1abe732 commit 00f28a3
Show file tree
Hide file tree
Showing 20 changed files with 361 additions and 0 deletions.
15 changes: 15 additions & 0 deletions boards/arduino-mkr1000/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
15 changes: 15 additions & 0 deletions boards/arduino-mkrfox1200/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
15 changes: 15 additions & 0 deletions boards/arduino-mkrwan1300/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
15 changes: 15 additions & 0 deletions boards/arduino-mkrzero/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
16 changes: 16 additions & 0 deletions boards/arduino-zero/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
21 changes: 21 additions & 0 deletions boards/common/arduino-mkr/Kconfig
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions boards/common/arduino-zero/Kconfig
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions boards/common/sodaq/Kconfig
Original file line number Diff line number Diff line change
@@ -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 changes: 23 additions & 0 deletions boards/feather-m0/Kconfig
Original file line number Diff line number Diff line change
@@ -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 changes: 22 additions & 0 deletions boards/hamilton/Kconfig
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions boards/samd21-xpro/Kconfig
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions boards/sensebox_samd21/Kconfig
Original file line number Diff line number Diff line change
@@ -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 changes: 23 additions & 0 deletions boards/serpente/Kconfig
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions boards/sodaq-autonomo/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
16 changes: 16 additions & 0 deletions boards/sodaq-explorer/Kconfig
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions boards/sodaq-one/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
16 changes: 16 additions & 0 deletions boards/sodaq-sara-aff/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
16 changes: 16 additions & 0 deletions boards/sodaq-sara-sff/Kconfig
Original file line number Diff line number Diff line change
@@ -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 changes: 17 additions & 0 deletions boards/wemos-zero/Kconfig
Original file line number Diff line number Diff line change
@@ -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"
Loading

0 comments on commit 00f28a3

Please sign in to comment.