From 2f2cb51904ece01da9db044a71d1f7a9344ac01e Mon Sep 17 00:00:00 2001 From: renpeiying Date: Fri, 8 Aug 2025 19:22:41 +0800 Subject: [PATCH] docs: Update struct for correct building of ledc.h Closes https://github.com/espressif/esp-idf/issues/8813 --- components/esp_driver_ledc/include/driver/ledc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/esp_driver_ledc/include/driver/ledc.h b/components/esp_driver_ledc/include/driver/ledc.h index c5f9d5a737..984e265abb 100644 --- a/components/esp_driver_ledc/include/driver/ledc.h +++ b/components/esp_driver_ledc/include/driver/ledc.h @@ -41,10 +41,10 @@ typedef struct { uint32_t duty; /*!< LEDC channel duty, the range of duty setting is [0, (2**duty_resolution)] */ int hpoint; /*!< LEDC channel hpoint value, the range is [0, (2**duty_resolution)-1] */ ledc_sleep_mode_t sleep_mode; /*!< choose the desired behavior for the LEDC channel in Light-sleep */ - struct { - unsigned int output_invert: 1;/*!< Enable (1) or disable (0) gpio output invert */ - } flags; /*!< LEDC flags */ - + /// Extra configuration flags for LEDC channel + struct ledc_channel_flags { + unsigned int output_invert: 1; /*!< Enable (1) or disable (0) gpio output invert */ + } flags; /*!< Extra configuration flags for LEDC channel */ } ledc_channel_config_t; /**