1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/stmpe811/Kconfig

51 lines
1.2 KiB
Plaintext

# 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.
#
config MODULE_STMPE811
bool
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
config HAVE_STMPE811_I2C
bool
select MODULE_STMPE811_I2C if MODULE_TOUCH_DEV
help
Indicates that an STMPE811 over I2C touch panel is present.
config HAVE_STMPE811_SPI
bool
select MODULE_STMPE811_SPI if MODULE_TOUCH_DEV
help
Indicates that an STMPE811 over SPI touch panel is present.
choice
bool "STMPE811 Touchscreen Controller"
optional
depends on TEST_KCONFIG
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
select MODULE_STMPE811
config MODULE_STMPE811_SPI
bool "STMPE811 on SPI"
depends on HAS_PERIPH_SPI
select MODULE_PERIPH_SPI
select MODULE_STMPE811
endchoice