From ad622c018ca7f91ac59f3a7fde86cfa16479b414 Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Wed, 26 Mar 2025 13:14:01 +0800 Subject: [PATCH] boards/szpi-esp32s3: Add PWM setup Add PWM setup for LCKFB SZPI-ESP32S3. Signed-off-by: wangjianyu3 --- .../esp32s3/lckfb-szpi-esp32s3/src/esp32s3_bringup.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3_bringup.c b/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3_bringup.c index 5eca0f5c46c..47762d5c9d5 100644 --- a/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3_bringup.c +++ b/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3_bringup.c @@ -84,6 +84,10 @@ # include "esp32s3_efuse.h" #endif +#ifdef CONFIG_ESP32S3_LEDC +# include "esp32s3_board_ledc.h" +#endif + #ifdef CONFIG_ESP32S3_PARTITION_TABLE # include "esp32s3_partition.h" #endif @@ -218,6 +222,14 @@ int esp32s3_bringup(void) } #endif +#ifdef CONFIG_ESP32S3_LEDC + ret = esp32s3_pwm_setup(); + if (ret < 0) + { + syslog(LOG_ERR, "ERROR: esp32s3_pwm_setup() failed: %d\n", ret); + } +#endif + #ifdef CONFIG_ESP32S3_TIMER /* Configure general purpose timers */