fix(pcnt): a typo in the PCNT_LL_MIN_LIM

Closes https://github.com/espressif/esp-idf/issues/15554
This commit is contained in:
morris
2025-03-11 22:07:45 +08:00
parent 7c5b34f568
commit 09f5bc736b
8 changed files with 8 additions and 8 deletions

View File

@@ -203,7 +203,7 @@ esp_err_t pcnt_new_unit(const pcnt_unit_config_t *config, pcnt_unit_handle_t *re
esp_err_t ret = ESP_OK;
pcnt_unit_t *unit = NULL;
ESP_GOTO_ON_FALSE(config && ret_unit, ESP_ERR_INVALID_ARG, err, TAG, "invalid argument");
ESP_GOTO_ON_FALSE(config->low_limit < 0 && config->high_limit > 0 && config->low_limit >= PCNT_LL_MIN_LIN &&
ESP_GOTO_ON_FALSE(config->low_limit < 0 && config->high_limit > 0 && config->low_limit >= PCNT_LL_MIN_LIM &&
config->high_limit <= PCNT_LL_MAX_LIM, ESP_ERR_INVALID_ARG, err, TAG,
"invalid limit range:[%d,%d]", config->low_limit, config->high_limit);
if (config->intr_priority) {

View File

@@ -31,7 +31,7 @@ extern "C" {
#define PCNT_LL_GET_HW(num) (((num) == 0) ? (&PCNT) : NULL)
#define PCNT_LL_MAX_GLITCH_WIDTH 1023
#define PCNT_LL_MAX_LIM SHRT_MAX
#define PCNT_LL_MIN_LIN SHRT_MIN
#define PCNT_LL_MIN_LIM SHRT_MIN
typedef enum {
PCNT_LL_WATCH_EVENT_INVALID = -1,

View File

@@ -21,7 +21,7 @@ extern "C" {
#define PCNT_LL_GET_HW(num) (((num) == 0) ? (&PCNT) : NULL)
#define PCNT_LL_MAX_GLITCH_WIDTH 1023
#define PCNT_LL_MAX_LIM SHRT_MAX
#define PCNT_LL_MIN_LIN SHRT_MIN
#define PCNT_LL_MIN_LIM SHRT_MIN
typedef enum {
PCNT_LL_WATCH_EVENT_INVALID = -1,

View File

@@ -28,7 +28,7 @@ extern "C" {
#define PCNT_LL_GET_HW(num) (((num) == 0) ? (&PCNT) : NULL)
#define PCNT_LL_MAX_GLITCH_WIDTH 1023
#define PCNT_LL_MAX_LIM SHRT_MAX
#define PCNT_LL_MIN_LIN SHRT_MIN
#define PCNT_LL_MIN_LIM SHRT_MIN
typedef enum {
PCNT_LL_WATCH_EVENT_INVALID = -1,

View File

@@ -31,7 +31,7 @@ extern "C" {
#define PCNT_LL_GET_HW(num) (((num) == 0) ? (&PCNT) : NULL)
#define PCNT_LL_MAX_GLITCH_WIDTH 1023
#define PCNT_LL_MAX_LIM SHRT_MAX
#define PCNT_LL_MIN_LIN SHRT_MIN
#define PCNT_LL_MIN_LIM SHRT_MIN
typedef enum {
PCNT_LL_WATCH_EVENT_INVALID = -1,

View File

@@ -29,7 +29,7 @@ extern "C" {
#define PCNT_LL_GET_HW(num) (((num) == 0) ? (&PCNT) : NULL)
#define PCNT_LL_MAX_GLITCH_WIDTH 1023
#define PCNT_LL_MAX_LIM SHRT_MAX
#define PCNT_LL_MIN_LIN SHRT_MIN
#define PCNT_LL_MIN_LIM SHRT_MIN
typedef enum {
PCNT_LL_WATCH_EVENT_INVALID = -1,

View File

@@ -29,7 +29,7 @@ extern "C" {
#define PCNT_LL_GET_HW(num) (((num) == 0) ? (&PCNT) : NULL)
#define PCNT_LL_MAX_GLITCH_WIDTH 1023
#define PCNT_LL_MAX_LIM SHRT_MAX
#define PCNT_LL_MIN_LIN SHRT_MIN
#define PCNT_LL_MIN_LIM SHRT_MIN
typedef enum {
PCNT_LL_WATCH_EVENT_INVALID = -1,

View File

@@ -28,7 +28,7 @@ extern "C" {
#define PCNT_LL_GET_HW(num) (((num) == 0) ? (&PCNT) : NULL)
#define PCNT_LL_MAX_GLITCH_WIDTH 1023
#define PCNT_LL_MAX_LIM SHRT_MAX
#define PCNT_LL_MIN_LIN SHRT_MIN
#define PCNT_LL_MIN_LIM SHRT_MIN
typedef enum {
PCNT_LL_WATCH_EVENT_INVALID = -1,