feat(pcnt): support pcnt on esp32s31 & add group_id config

This commit is contained in:
Chen Chen
2026-04-24 17:16:15 +08:00
parent 84c9a924bf
commit 2658eda240
19 changed files with 859 additions and 176 deletions
@@ -59,6 +59,7 @@ typedef struct {
* @brief PCNT unit configuration
*/
typedef struct {
int group_id; /*!< Specify from which PCNT instance (peripheral group) to allocate the unit */
pcnt_clock_source_t clk_src; /*!< Clock source for PCNT unit */
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 */