sys/arduino: add module to Kconfig

This commit is contained in:
Leandro Lanzieri 2020-09-24 14:13:34 +02:00
parent 7185edb070
commit b2b704160e
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 23 additions and 0 deletions

View File

@ -6,6 +6,7 @@
# #
menu "System" menu "System"
rsource "arduino/Kconfig"
rsource "auto_init/Kconfig" rsource "auto_init/Kconfig"
rsource "benchmark/Kconfig" rsource "benchmark/Kconfig"
rsource "div/Kconfig" rsource "div/Kconfig"

22
sys/arduino/Kconfig Normal file
View File

@ -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