ESP_PCNT: add high and low limit Kconfig options

Signed-off-by: Martin Vajnar <martin.vajnar@gmail.com>
This commit is contained in:
Martin Vajnar
2025-07-19 16:53:19 +02:00
committed by Alan C. Assis
parent d7a05dfcc6
commit 150854c6f2
7 changed files with 42 additions and 10 deletions
@@ -40,8 +40,8 @@
* Pre-processor Definitions
****************************************************************************/
#define PCNT_HIGH_LIMIT 1000
#define PCNT_LOW_LIMIT -1000
#define PCNT_HIGH_LIMIT CONFIG_ESP_PCNT_HIGH_LIMIT
#define PCNT_LOW_LIMIT CONFIG_ESP_PCNT_LOW_LIMIT
#define PCNT_GLITCH_FILTER(pcnt, thres) pcnt->ops->ioctl(pcnt, \
CAPIOC_FILTER, \