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

61 lines
1.5 KiB
Plaintext
Raw Normal View History

# 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
2021-10-23 12:09:27 +02:00
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
2021-12-01 17:10:43 +01:00
depends on TEST_KCONFIG
select MODULE_PERIPH_GPIO
select MODULE_PERIPH_GPIO_IRQ
2021-12-01 17:10:43 +01:00
select MODULE_ZTIMER
select MODULE_ZTIMER_MSEC
2021-10-23 12:09:27 +02:00
if MODULE_STMPE811
2022-01-01 16:04:42 +01:00
choice STMPE811_VARIANT
bool "Model"
default MODULE_STMPE811_I2C if HAVE_STMPE811_I2C
default MODULE_STMPE811_SPI if HAVE_STMPE811_SPI
2021-10-23 12:09:27 +02:00
help
The driver supports both stmpe811 connected either via SPI or
2021-10-23 12:09:27 +02:00
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
2021-10-23 12:09:27 +02:00
select MODULE_PERIPH_SPI
select MODULE_PERIPH_GPIO
2021-10-23 12:09:27 +02:00
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.