feat(mcpwm): MCPWM event comparator driver

In esp32p4, the MCPWM has a new feature, mainly ETM-oriented.
Each operator has two event comparators, can generate an event
when the count value of the timer that operator connects is equal
to the value of event comparator.
This commit is contained in:
Chen Jichang
2023-09-11 16:53:34 +08:00
committed by morris
parent bd0eac77b2
commit 7638235311
24 changed files with 685 additions and 82 deletions
@@ -24,6 +24,7 @@ typedef enum {
ETM_TRIG_PERIPH_GDMA, /*!< ETM trigger source: GDMA */
ETM_TRIG_PERIPH_GPTIMER, /*!< ETM trigger source: GPTimer */
ETM_TRIG_PERIPH_SYSTIMER, /*!< ETM trigger source: Systimer */
ETM_TRIG_PERIPH_MCPWM, /*!< ETM trigger source: MCPWM */
} etm_trigger_peripheral_t;
/**