forked from espressif/esp-idf
fix(pcnt): a typo in the PCNT_LL_MIN_LIM
Closes https://github.com/espressif/esp-idf/issues/15554
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user