Merge branch 'bugfix/update_struct_in_ledc_header' into 'master'

docs: Update struct for correct building of ledc.h

Closes IDFGH-7219

See merge request espressif/esp-idf!41133
This commit is contained in:
Ren Peiying
2025-08-14 11:03:43 +08:00

View File

@@ -41,10 +41,10 @@ typedef struct {
uint32_t duty; /*!< LEDC channel duty, the range of duty setting is [0, (2**duty_resolution)] */ 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] */ 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 */ ledc_sleep_mode_t sleep_mode; /*!< choose the desired behavior for the LEDC channel in Light-sleep */
struct { /// Extra configuration flags for LEDC channel
unsigned int output_invert: 1;/*!< Enable (1) or disable (0) gpio output invert */ struct ledc_channel_flags {
} flags; /*!< LEDC 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; } ledc_channel_config_t;
/** /**