From b2b704160e51041d627dacea795ba0632b3e8538 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 24 Sep 2020 14:13:34 +0200 Subject: [PATCH] sys/arduino: add module to Kconfig --- sys/Kconfig | 1 + sys/arduino/Kconfig | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 sys/arduino/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index 863166a4b5..1fc25a3d50 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -6,6 +6,7 @@ # menu "System" +rsource "arduino/Kconfig" rsource "auto_init/Kconfig" rsource "benchmark/Kconfig" rsource "div/Kconfig" diff --git a/sys/arduino/Kconfig b/sys/arduino/Kconfig new file mode 100644 index 0000000000..e14b23759b --- /dev/null +++ b/sys/arduino/Kconfig @@ -0,0 +1,22 @@ +# 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. +# + +menuconfig MODULE_ARDUINO + bool "Arduino support" + imply MODULE_ARDUINO_PWM + imply MODULE_PERIPH_ADC + depends on HAS_ARDUINO + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + +config MODULE_ARDUINO_PWM + bool "PWM support for Arduino" + depends on HAS_PERIPH_PWM + depends on MODULE_ARDUINO + depends on TEST_KCONFIG + select MODULE_PERIPH_PWM