mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-07 05:35:16 +00:00
feat(ledc): Add channel deconfiguration option to release the occupied IOs
Closes https://github.com/espressif/esp-idf/issues/15666
This commit is contained in:
@@ -45,6 +45,9 @@ typedef struct {
|
||||
struct ledc_channel_flags {
|
||||
unsigned int output_invert: 1; /*!< Enable (1) or disable (0) gpio output invert */
|
||||
} flags; /*!< Extra configuration flags for LEDC channel */
|
||||
bool deconfigure; /*!< Set this field to de-configure a LEDC channel which has been configured before
|
||||
The driver only does limited action to release the pins occupied by this channel only.
|
||||
When this field is set, gpio_num, timer_sel, duty, hpoint, sleep_mode, flags fields are ignored. */
|
||||
} ledc_channel_config_t;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user