2021-01-06 10:35:07 +01:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2022-01-01 16:48:47 +01:00
|
|
|
menuconfig MODULE_STMPE811
|
2021-10-23 12:09:27 +02:00
|
|
|
bool
|
2022-01-01 16:48:47 +01:00
|
|
|
prompt "STMPE811 Touchscreen Controller" if !(MODULE_TOUCH_DEV && HAVE_STMPE811)
|
|
|
|
default (MODULE_TOUCH_DEV && HAVE_STMPE811)
|
2021-01-06 10:35:07 +01:00
|
|
|
depends on HAS_PERIPH_GPIO
|
|
|
|
depends on HAS_PERIPH_GPIO_IRQ
|
2021-12-01 17:10:43 +01:00
|
|
|
depends on TEST_KCONFIG
|
2021-01-06 10:35:07 +01:00
|
|
|
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
|
|
|
|
2022-01-01 16:48:47 +01:00
|
|
|
if MODULE_STMPE811
|
2022-01-01 16:04:42 +01:00
|
|
|
|
2022-01-01 16:48:47 +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
|
2022-01-01 16:48:47 +01:00
|
|
|
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
|
2022-01-01 16:48:47 +01:00
|
|
|
depends on HAS_PERIPH_GPIO
|
2021-10-23 12:09:27 +02:00
|
|
|
select MODULE_PERIPH_SPI
|
2022-01-01 16:48:47 +01:00
|
|
|
select MODULE_PERIPH_GPIO
|
2021-10-23 12:09:27 +02:00
|
|
|
endchoice
|
2022-01-01 16:48:47 +01:00
|
|
|
|
|
|
|
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.
|