Merge pull request #14477 from leandrolanzieri/pr/kconfig/sam3_boards_symbols
boards/sam3-based: Model features in Kconfig
This commit is contained in:
commit
def5f80998
15
boards/arduino-due/Kconfig
Normal file
15
boards/arduino-due/Kconfig
Normal 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-due" if BOARD_ARDUINO_DUE
|
||||||
|
|
||||||
|
config BOARD_ARDUINO_DUE
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
select BOARD_COMMON_ARDUINO_DUE
|
||||||
|
|
||||||
|
source "$(RIOTBOARD)/common/arduino-due/Kconfig"
|
||||||
19
boards/common/arduino-due/Kconfig
Normal file
19
boards/common/arduino-due/Kconfig
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# 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_DUE
|
||||||
|
bool
|
||||||
|
select CPU_MODEL_SAM3X8E
|
||||||
|
select HAS_ARDUINO
|
||||||
|
select HAS_PERIPH_ADC
|
||||||
|
select HAS_PERIPH_DAC
|
||||||
|
select HAS_PERIPH_GPIO
|
||||||
|
select HAS_PERIPH_GPIO_IRQ
|
||||||
|
select HAS_PERIPH_PWM
|
||||||
|
select HAS_PERIPH_RTT
|
||||||
|
select HAS_PERIPH_SPI
|
||||||
|
select HAS_PERIPH_TIMER
|
||||||
|
select HAS_PERIPH_UART
|
||||||
15
boards/udoo/Kconfig
Normal file
15
boards/udoo/Kconfig
Normal 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 "udoo" if BOARD_UDOO
|
||||||
|
|
||||||
|
config BOARD_UDOO
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
select BOARD_COMMON_ARDUINO_DUE
|
||||||
|
|
||||||
|
source "$(RIOTBOARD)/common/arduino-due/Kconfig"
|
||||||
37
cpu/sam3/Kconfig
Normal file
37
cpu/sam3/Kconfig
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# 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 CPU_FAM_SAM3
|
||||||
|
bool
|
||||||
|
select CPU_CORE_CORTEX_M3
|
||||||
|
select HAS_CORTEXM_MPU
|
||||||
|
select HAS_CPU_SAM3
|
||||||
|
select HAS_PERIPH_CPUID
|
||||||
|
select HAS_PERIPH_HWRNG
|
||||||
|
|
||||||
|
## CPU Models
|
||||||
|
config CPU_MODEL_SAM3X8E
|
||||||
|
bool
|
||||||
|
select CPU_FAM_SAM3
|
||||||
|
|
||||||
|
## Declaration of specific features
|
||||||
|
config HAS_CPU_SAM3
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
Indicates that a 'sam3' cpu is being used.
|
||||||
|
|
||||||
|
## Common CPU symbols
|
||||||
|
config CPU_FAM
|
||||||
|
default "sam3" if CPU_FAM_SAM3
|
||||||
|
|
||||||
|
config CPU_MODEL
|
||||||
|
default "sam3x8e" if CPU_MODEL_SAM3X8E
|
||||||
|
|
||||||
|
config CPU
|
||||||
|
default "sam3" if CPU_FAM_SAM3
|
||||||
|
|
||||||
|
source "$(RIOTCPU)/cortexm_common/Kconfig"
|
||||||
@ -5,4 +5,4 @@ FEATURES_PROVIDED += cortexm_mpu
|
|||||||
FEATURES_PROVIDED += periph_cpuid
|
FEATURES_PROVIDED += periph_cpuid
|
||||||
FEATURES_PROVIDED += periph_hwrng
|
FEATURES_PROVIDED += periph_hwrng
|
||||||
|
|
||||||
-include $(RIOTCPU)/cortexm_common/Makefile.features
|
include $(RIOTCPU)/cortexm_common/Makefile.features
|
||||||
|
|||||||
@ -4,6 +4,7 @@ BOARD_WHITELIST += 6lowpan-clicker \
|
|||||||
acd52832 \
|
acd52832 \
|
||||||
adafruit-clue \
|
adafruit-clue \
|
||||||
airfy-beacon \
|
airfy-beacon \
|
||||||
|
arduino-due \
|
||||||
arduino-duemilanove \
|
arduino-duemilanove \
|
||||||
arduino-leonardo \
|
arduino-leonardo \
|
||||||
arduino-mega2560 \
|
arduino-mega2560 \
|
||||||
@ -157,6 +158,7 @@ BOARD_WHITELIST += 6lowpan-clicker \
|
|||||||
telosb \
|
telosb \
|
||||||
thingy52 \
|
thingy52 \
|
||||||
ublox-c030-u201 \
|
ublox-c030-u201 \
|
||||||
|
udoo \
|
||||||
usb-kw41z \
|
usb-kw41z \
|
||||||
waspmote-pro \
|
waspmote-pro \
|
||||||
weact-f411ce \
|
weact-f411ce \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user