diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index e8b39cac99..266df42ad5 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -4,6 +4,10 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. +menu "Actuator Device Drivers" +rsource "motor_driver/Kconfig" +endmenu # Actuator Device Drivers + menu "Network Device Drivers" rsource "at86rf215/Kconfig" rsource "cc110x/Kconfig" diff --git a/drivers/motor_driver/Kconfig b/drivers/motor_driver/Kconfig new file mode 100644 index 0000000000..8741f70d19 --- /dev/null +++ b/drivers/motor_driver/Kconfig @@ -0,0 +1,23 @@ +# Copyright (c) 2020 Freie Universitaet Berlin +# +# 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 KCONFIG_MODULE_MOTOR_DRIVER + bool "Configure the DC Motor driver" + depends on MODULE_MOTOR_DRIVER + help + Configure the DC Motor driver using Kconfig. + +if KCONFIG_MODULE_MOTOR_DRIVER + +config MOTOR_DRIVER_MAX + int "Maximum number of motors" + default 2 + help + Maximum number of motors depends on the H-bridge. + The value should not exceed the number of PWM channels + Default value is set to 2. + +endif # KCONFIG_MODULE_MOTOR_DRIVER