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

drivers/periph_common: add gpio_fast_read module to Kconfig

This commit is contained in:
Leandro Lanzieri 2020-11-05 10:56:25 +01:00
parent 3ce7dc8f1d
commit 8b74702c7e
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5

View File

@ -22,6 +22,13 @@ config MODULE_PERIPH_GPIO_IRQ
depends on HAS_PERIPH_GPIO_IRQ
select MODULE_PERIPH_COMMON
config MODULE_PERIPH_GPIO_FAST_READ
bool "GPIO fast read"
depends on HAS_PERIPH_GPIO_FAST_READ
help
This trades an increase in power consumption for a decrease in GPIO pin
read latency.
# TODO: this module is actually just an artifact from the way periph_init_%
# modules are handled in Makefile. We need to define it to keep the list the
# same for now. We should be able to remove it later on.
@ -31,4 +38,9 @@ config MODULE_PERIPH_INIT_GPIO_IRQ
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_GPIO_IRQ
config MODULE_PERIPH_INIT_GPIO_FAST_READ
bool "Auto initialize GPIO fast read"
default y if MODULE_PERIPH_INIT
depends on MODULE_PERIPH_GPIO_FAST_READ
endif # MODULE_PERIPH_GPIO