1# Copyright (c) 2024 Arif Balik <arifbalik@outlook.com>
2# SPDX-License-Identifier: Apache-2.0
3
4config INPUT_STM32_TSC_KEYS
5	bool "STM32 TSC touch library"
6	default y
7	depends on DT_HAS_ST_STM32_TSC_ENABLED
8	select RING_BUFFER
9	help
10	  Enable support for STM32 TSC touch library.
11
12config INPUT_STM32_TSC_KEYS_BUFFER_WORD_SIZE
13	int "STM32 TSC touch buffer size in words"
14	default 10
15	depends on INPUT_STM32_TSC_KEYS
16	help
17	  Size of the ring buffer for the STM32 TSC touch library. The size of this
18	  buffer together with the sampling-interval property in the tsc-keys
19	  device tree node determines the time window of interest. A slope value is
20	  calculated between the oldest and the newest value in the buffer to
21	  generate a press or release input event.
22