2022-09-22 22:45:49 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
if ARCH_BOARD_ESP32_LYRAT
|
|
|
|
|
2022-12-13 20:11:44 +01:00
|
|
|
config ESP32_TOUCH
|
2023-01-26 03:45:27 +01:00
|
|
|
bool "Touch pad support"
|
2022-12-13 20:11:44 +01:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable ESP32 touch pad support.
|
|
|
|
|
2023-01-26 03:45:27 +01:00
|
|
|
if ESP32_TOUCH
|
|
|
|
|
2022-12-13 20:11:44 +01:00
|
|
|
config ESP32_TOUCH_FILTER
|
2023-01-26 03:45:27 +01:00
|
|
|
bool "Enable touch pad IIR filter"
|
2022-12-13 20:11:44 +01:00
|
|
|
select ESP32_RT_TIMER
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable infinite impulse response filter for the touch pads.
|
|
|
|
|
2023-01-26 03:45:27 +01:00
|
|
|
config ESP32_TOUCH_IRQ
|
|
|
|
bool "Enable touch pad interrupts"
|
|
|
|
select ESP32_RTCIO_IRQ
|
|
|
|
select ESP32_RT_TIMER
|
|
|
|
depends on ARCH_IRQBUTTONS
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable interrupt support for the touch pads.
|
|
|
|
|
|
|
|
config ESP32_TOUCH_IRQ_INTERVAL_MS
|
|
|
|
int "Minimum interrupt interval (ms)"
|
|
|
|
depends on ESP32_TOUCH_IRQ
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
Minimum interval between touch pad interrupts (in milliseconds).
|
|
|
|
As the RTC interrupts are triggered by level, this interrupt
|
|
|
|
will be constantly set off as long as the touch pad is pressed.
|
|
|
|
To avoid that, we disable the interrupt when it is triggered and
|
|
|
|
set a timer for it to be re-enabled.
|
|
|
|
|
|
|
|
endif # ESP32_TOUCH
|
|
|
|
|
2022-09-22 22:45:49 +02:00
|
|
|
endif # ARCH_BOARD_ESP32_LYRAT
|