Merge branch 'doc/pcnt_overflow_compensate_v5.0' into 'release/v5.0'

pcnt: support accumulate the count value in the high/low limit event (v5.0)

See merge request espressif/esp-idf!21170
This commit is contained in:
morris
2022-12-02 22:42:50 +08:00
6 changed files with 85 additions and 46 deletions

View File

@@ -61,6 +61,9 @@ typedef struct {
typedef struct {
int low_limit; /*!< Low limitation of the count unit, should be lower than 0 */
int high_limit; /*!< High limitation of the count unit, should be higher than 0 */
struct {
uint32_t accum_count: 1; /*!< Whether to accumulate the count value when overflows at the high/low limit */
} flags; /*!< Extra flags */
} pcnt_unit_config_t;
/**