mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-03 10:35:22 +00:00
input_tsc_keys to detect key press releases using STM32 TSC Signed-off-by: Arif Balik <arifbalik@outlook.com>
22 lines
760 B
Plaintext
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.
|