kopia lustrzana https://github.com/espressif/esp-idf
filter: workaround a hw issue in the glitch filter
that the internal glitch counter will overflow at 64 constant level input, causing a wrong filter resultpull/11112/head
rodzic
f1c03f0dda
commit
1375627461
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -16,7 +16,8 @@
|
|||
#include "hal/assert.h"
|
||||
#include "soc/gpio_ext_struct.h"
|
||||
|
||||
#define GPIO_LL_GLITCH_FILTER_MAX_WINDOW 64
|
||||
// the max window size is expected to be 64, but due to a hardware issue, we need to limit it to 63
|
||||
#define GPIO_LL_GLITCH_FILTER_MAX_WINDOW 63
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
#include "hal/assert.h"
|
||||
#include "soc/gpio_ext_struct.h"
|
||||
|
||||
#define GPIO_LL_GLITCH_FILTER_MAX_WINDOW 64
|
||||
// the max window size is expected to be 64, but due to a hardware issue, we need to limit it to 63
|
||||
#define GPIO_LL_GLITCH_FILTER_MAX_WINDOW 63
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
Ładowanie…
Reference in New Issue