From 14a6b1db565d98db13fd304009be5327d603eced Mon Sep 17 00:00:00 2001 From: Wu Bo Wen Date: Wed, 29 Jul 2020 17:55:28 +0800 Subject: [PATCH] driver/mcpwm: add an option to capture on both edges. However, The functionality of capturing on both edges is alternatively done with passing in the two flags ORed together: MCPWM_NEG_EDGE|MCPWM_POS_EDGE closes https://github.com/espressif/esp-idf/issues/4446 closes https://github.com/espressif/esp-idf/issues/2943 --- components/soc/include/hal/mcpwm_types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/soc/include/hal/mcpwm_types.h b/components/soc/include/hal/mcpwm_types.h index ca9052de49..aac08da02d 100644 --- a/components/soc/include/hal/mcpwm_types.h +++ b/components/soc/include/hal/mcpwm_types.h @@ -81,6 +81,7 @@ typedef enum { * @brief MCPWM select capture starts from which edge */ typedef enum { - MCPWM_NEG_EDGE = BIT(0), /*!