feat(mcpwm): ETM support mcpwm timer TEZ/TEP events

This commit is contained in:
Chen Chen
2026-02-12 15:00:43 +08:00
parent ffba8f4295
commit e9a62f9a2b
11 changed files with 340 additions and 24 deletions
+10 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -105,6 +105,15 @@ typedef enum {
MCPWM_CAP_EDGE_NEG, /*!< Capture on the negative edge */
} mcpwm_capture_edge_t;
/**
* @brief MCPWM timer specific events that supported by the ETM module
*/
typedef enum {
MCPWM_TIMER_ETM_EVENT_TEZ, /*!< The timer reaches zero */
MCPWM_TIMER_ETM_EVENT_TEP, /*!< The timer reaches peak */
MCPWM_TIMER_ETM_EVENT_MAX, /*!< Maximum number of timer events */
} mcpwm_timer_etm_event_type_t;
/**
* @brief MCPWM comparator specific events that supported by the ETM module
*/