From 8715f19c260dce8efc3b8d9cc6a592373f2cef0d Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 9 Sep 2020 15:42:14 +0200 Subject: [PATCH] cpu/native/periph: add Native GPIO modules to Kconfig --- cpu/native/periph/Kconfig.gpio | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 cpu/native/periph/Kconfig.gpio diff --git a/cpu/native/periph/Kconfig.gpio b/cpu/native/periph/Kconfig.gpio new file mode 100644 index 0000000000..315d7ed60d --- /dev/null +++ b/cpu/native/periph/Kconfig.gpio @@ -0,0 +1,36 @@ +# 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. +# + +choice NATIVE_GPIO_IMPLEMENTATION + bool "Native GPIO peripheral implementation" + depends on MODULE_PERIPH_GPIO + depends on CPU_ARCH_NATIVE + depends on TEST_KCONFIG + default MODULE_PERIPH_GPIO_LINUX if NATIVE_OS_LINUX + +config MODULE_PERIPH_GPIO_LINUX + bool "Linux GPIO" + depends on NATIVE_OS_LINUX + +config MODULE_PERIPH_GPIO_MOCK + bool "Mock" + +endchoice + +# TODO: these modules are actually just artifacts from the way periph_init_% +# modules are handled in Makefile. We need to define them to keep the list the +# same for now. We should be able to remove them later on. + +config MODULE_PERIPH_INIT_GPIO_LINUX + bool + default y if MODULE_PERIPH_INIT + depends on MODULE_PERIPH_GPIO_LINUX + +config MODULE_PERIPH_INIT_GPIO_MOCK + bool + default y if MODULE_PERIPH_INIT + depends on MODULE_PERIPH_GPIO_MOCK