From 8b74702c7ee800f5cdd5c84debb64cc4d330bd43 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 5 Nov 2020 10:56:25 +0100 Subject: [PATCH] drivers/periph_common: add gpio_fast_read module to Kconfig --- drivers/periph_common/Kconfig.gpio | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/periph_common/Kconfig.gpio b/drivers/periph_common/Kconfig.gpio index 6acd863ca4..59f5cd089f 100644 --- a/drivers/periph_common/Kconfig.gpio +++ b/drivers/periph_common/Kconfig.gpio @@ -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