diff --git a/components/driver/CMakeLists.txt b/components/driver/CMakeLists.txt index fcac19fe12..07a683a832 100644 --- a/components/driver/CMakeLists.txt +++ b/components/driver/CMakeLists.txt @@ -59,6 +59,7 @@ if(${target} STREQUAL "esp32s3") "gdma.c" "sdmmc_host.c" "sdmmc_transaction.c" + "mcpwm.c" "spi_slave_hd.c" "touch_sensor_common.c" ) diff --git a/components/driver/include/driver/mcpwm.h b/components/driver/include/driver/mcpwm.h index 8774941e48..7c41efc5db 100644 --- a/components/driver/include/driver/mcpwm.h +++ b/components/driver/include/driver/mcpwm.h @@ -8,7 +8,6 @@ #include "soc/soc_caps.h" #if SOC_MCPWM_SUPPORTED - #include "esp_err.h" #include "soc/soc.h" #include "driver/gpio.h" @@ -20,7 +19,6 @@ extern "C" { #endif - /** * @brief IO signals for the MCPWM * @@ -130,6 +128,15 @@ typedef enum { MCPWM_SELECT_F2, /*!