mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
sam0: Add periph_gpio_fast_read feature where applicable
This commit is contained in:
parent
ddb22a3c56
commit
6007a31813
@ -10,6 +10,7 @@ config CPU_FAM_SAMD21
|
|||||||
select CPU_COMMON_SAM0
|
select CPU_COMMON_SAM0
|
||||||
select CPU_CORE_CORTEX_M0PLUS
|
select CPU_CORE_CORTEX_M0PLUS
|
||||||
select HAS_CPU_SAMD21
|
select HAS_CPU_SAMD21
|
||||||
|
select HAS_PERIPH_GPIO_FAST_READ
|
||||||
select HAS_PUF_SRAM
|
select HAS_PUF_SRAM
|
||||||
|
|
||||||
## CPU Models
|
## CPU Models
|
||||||
|
@ -2,5 +2,6 @@ CPU_CORE = cortex-m0plus
|
|||||||
CPU_FAM = samd21
|
CPU_FAM = samd21
|
||||||
|
|
||||||
FEATURES_PROVIDED += puf_sram
|
FEATURES_PROVIDED += puf_sram
|
||||||
|
FEATURES_PROVIDED += periph_gpio_fast_read
|
||||||
|
|
||||||
-include $(RIOTCPU)/sam0_common/Makefile.features
|
-include $(RIOTCPU)/sam0_common/Makefile.features
|
||||||
|
@ -11,6 +11,7 @@ config CPU_COMMON_SAML1X
|
|||||||
select CPU_CORE_CORTEX_M23
|
select CPU_CORE_CORTEX_M23
|
||||||
select HAS_CORTEXM_MPU
|
select HAS_CORTEXM_MPU
|
||||||
select HAS_CPU_SAML1X
|
select HAS_CPU_SAML1X
|
||||||
|
select HAS_PERIPH_GPIO_FAST_READ
|
||||||
select HAS_PERIPH_HWRNG
|
select HAS_PERIPH_HWRNG
|
||||||
|
|
||||||
config CPU_FAM_SAML10
|
config CPU_FAM_SAML10
|
||||||
|
@ -10,5 +10,6 @@ endif
|
|||||||
|
|
||||||
FEATURES_PROVIDED += cortexm_mpu
|
FEATURES_PROVIDED += cortexm_mpu
|
||||||
FEATURES_PROVIDED += periph_hwrng
|
FEATURES_PROVIDED += periph_hwrng
|
||||||
|
FEATURES_PROVIDED += periph_gpio_fast_read
|
||||||
|
|
||||||
include $(RIOTCPU)/sam0_common/Makefile.features
|
include $(RIOTCPU)/sam0_common/Makefile.features
|
||||||
|
@ -11,6 +11,7 @@ config CPU_FAM_SAML21
|
|||||||
select CPU_CORE_CORTEX_M0PLUS
|
select CPU_CORE_CORTEX_M0PLUS
|
||||||
select HAS_BACKUP_RAM
|
select HAS_BACKUP_RAM
|
||||||
select HAS_CPU_SAML21
|
select HAS_CPU_SAML21
|
||||||
|
select HAS_PERIPH_GPIO_FAST_READ
|
||||||
|
|
||||||
## CPU Models
|
## CPU Models
|
||||||
config CPU_MODEL_SAML21J18A
|
config CPU_MODEL_SAML21J18A
|
||||||
|
@ -4,6 +4,8 @@ CPU_FAM = saml21
|
|||||||
# The SAMR30 line of MCUs does not contain a TRNG
|
# The SAMR30 line of MCUs does not contain a TRNG
|
||||||
CPU_MODELS_WITHOUT_HWRNG += samr30%
|
CPU_MODELS_WITHOUT_HWRNG += samr30%
|
||||||
|
|
||||||
|
FEATURES_PROVIDED += periph_gpio_fast_read
|
||||||
|
|
||||||
# Low Power SRAM is *not* retained during Backup Sleep.
|
# Low Power SRAM is *not* retained during Backup Sleep.
|
||||||
# It therefore does not fulfill the requirements of the 'backup_ram' interface.
|
# 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
|
# It can still be used in normal and standby mode, but code that relies on it
|
||||||
|
@ -143,6 +143,13 @@ config HAS_PERIPH_GPIO_IRQ
|
|||||||
Indicates that the GPIO peripheral supports external interrupts is
|
Indicates that the GPIO peripheral supports external interrupts is
|
||||||
present.
|
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
|
config HAS_PERIPH_HWRNG
|
||||||
bool
|
bool
|
||||||
help
|
help
|
||||||
|
Loading…
Reference in New Issue
Block a user