zephyr/drivers/input/Kconfig.tsc_keys
Arif Balik 1c8f06c7c2 driver: input: added input_tsc_keys
input_tsc_keys to detect key press releases
using STM32 TSC

Signed-off-by: Arif Balik <arifbalik@outlook.com>
2025-03-17 13:55:48 +01:00

22 lines
760 B
Plaintext

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