From 739fbf41fb883fb009b79aab86172ae95d714062 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Tue, 7 Dec 2021 00:53:00 +0100 Subject: [PATCH] drivers/mcp47xx: add Kconfig --- drivers/Kconfig | 1 + drivers/mcp47xx/Kconfig | 14 ++++++++++++++ tests/driver_mcp47xx/app.config.test | 5 +++++ 3 files changed, 20 insertions(+) create mode 100644 drivers/mcp47xx/Kconfig create mode 100644 tests/driver_mcp47xx/app.config.test diff --git a/drivers/Kconfig b/drivers/Kconfig index eead0d8c2e..7d2ced81a9 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -19,6 +19,7 @@ rsource "dynamixel/Kconfig" rsource "feetech/Kconfig" rsource "grove_ledbar/Kconfig" rsource "motor_driver/Kconfig" +rsource "mcp47xx/Kconfig" rsource "my9221/Kconfig" rsource "rgbled/Kconfig" rsource "servo/Kconfig" diff --git a/drivers/mcp47xx/Kconfig b/drivers/mcp47xx/Kconfig new file mode 100644 index 0000000000..cce4ad076e --- /dev/null +++ b/drivers/mcp47xx/Kconfig @@ -0,0 +1,14 @@ +# Copyright (c) 2021 Gunar Schorcht +# +# 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_MCP47XX + bool "MCP47xx DAC with I2C interface" + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + help + Driver for Microchip MCP47xx DAC devices with I2C interfaces. The + driver supports MCP4706, MCP4716, MCP4725, MCP4726 and MCP4728. diff --git a/tests/driver_mcp47xx/app.config.test b/tests/driver_mcp47xx/app.config.test new file mode 100644 index 0000000000..3e9c052a82 --- /dev/null +++ b/tests/driver_mcp47xx/app.config.test @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_MCP47XX=y +CONFIG_MODULE_SHELL=y +CONFIG_MODULE_BENCHMARK=y