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

sam0: Add periph_gpio_fast_read feature where applicable

This commit is contained in:
Koen Zandberg 2020-09-10 21:59:40 +02:00
parent ddb22a3c56
commit 6007a31813
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B
7 changed files with 14 additions and 0 deletions

View File

@ -10,6 +10,7 @@ config CPU_FAM_SAMD21
select CPU_COMMON_SAM0
select CPU_CORE_CORTEX_M0PLUS
select HAS_CPU_SAMD21
select HAS_PERIPH_GPIO_FAST_READ
select HAS_PUF_SRAM
## CPU Models

View File

@ -2,5 +2,6 @@ CPU_CORE = cortex-m0plus
CPU_FAM = samd21
FEATURES_PROVIDED += puf_sram
FEATURES_PROVIDED += periph_gpio_fast_read
-include $(RIOTCPU)/sam0_common/Makefile.features

View File

@ -11,6 +11,7 @@ config CPU_COMMON_SAML1X
select CPU_CORE_CORTEX_M23
select HAS_CORTEXM_MPU
select HAS_CPU_SAML1X
select HAS_PERIPH_GPIO_FAST_READ
select HAS_PERIPH_HWRNG
config CPU_FAM_SAML10

View File

@ -10,5 +10,6 @@ endif
FEATURES_PROVIDED += cortexm_mpu
FEATURES_PROVIDED += periph_hwrng
FEATURES_PROVIDED += periph_gpio_fast_read
include $(RIOTCPU)/sam0_common/Makefile.features

View File

@ -11,6 +11,7 @@ config CPU_FAM_SAML21
select CPU_CORE_CORTEX_M0PLUS
select HAS_BACKUP_RAM
select HAS_CPU_SAML21
select HAS_PERIPH_GPIO_FAST_READ
## CPU Models
config CPU_MODEL_SAML21J18A

View File

@ -4,6 +4,8 @@ CPU_FAM = saml21
# The SAMR30 line of MCUs does not contain a TRNG
CPU_MODELS_WITHOUT_HWRNG += samr30%
FEATURES_PROVIDED += periph_gpio_fast_read
# Low Power SRAM is *not* retained during Backup Sleep.
# It therefore does not fulfill the requirements of the 'backup_ram' interface.
# It can still be used in normal and standby mode, but code that relies on it

View File

@ -143,6 +143,13 @@ config HAS_PERIPH_GPIO_IRQ
Indicates that the GPIO peripheral supports external interrupts is
present.
config HAS_PERIPH_GPIO_FAST_READ
bool
help
Indicates that the GPIO peripheral supports a mode in which pin read
operations are faster, usually with a tradeoff against a different
property.
config HAS_PERIPH_HWRNG
bool
help