1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

drivers/motor_driver : Expose to Kconfig

Expose Configurations to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
This commit is contained in:
Akshai M 2020-04-22 22:21:41 +05:30
parent 39826d6e5b
commit c654b4ea3c
2 changed files with 27 additions and 0 deletions

View File

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

View File

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