# Copyright (c) 2021 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_STMPE811 bool prompt "STMPE811 Touchscreen Controller" if !(MODULE_TOUCH_DEV && HAVE_STMPE811) default (MODULE_TOUCH_DEV && HAVE_STMPE811) depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_GPIO_IRQ depends on TEST_KCONFIG select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ select MODULE_ZTIMER select MODULE_ZTIMER_MSEC if MODULE_STMPE811 choice STMPE811_VARIANT bool "Model" default MODULE_STMPE811_I2C if HAVE_STMPE811_I2C default MODULE_STMPE811_SPI if HAVE_STMPE811_SPI help The driver supports both stmpe811 connected either via SPI or I2C bus. Select one combination. config MODULE_STMPE811_I2C bool "STMPE811 on I2C" depends on HAS_PERIPH_I2C select MODULE_PERIPH_I2C config MODULE_STMPE811_SPI bool "STMPE811 on SPI" depends on HAS_PERIPH_SPI depends on HAS_PERIPH_GPIO select MODULE_PERIPH_SPI select MODULE_PERIPH_GPIO endchoice endif # MODULE_STMPE811 config HAVE_STMPE811 bool help Indicates that an STMPE811 is present. config HAVE_STMPE811_I2C bool select HAVE_STMPE811 help Indicates that an STMPE811 over I2C touch panel is present. config HAVE_STMPE811_SPI bool select HAVE_STMPE811 help Indicates that an STMPE811 over SPI touch panel is present.