You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This function does not take care of whether the chosen clock source is enabled or not, also does not handle the clock source
356
-
* to meet channel sleep mode choice.
357
-
*
358
-
* If the chosen clock source is a new clock source to the LEDC timer, please use `ledc_timer_config`;
359
-
* If the clock source is kept to be the same, but frequency needs to be updated, please use `ledc_set_freq`.
360
-
*
361
-
* @param speed_mode Select the LEDC channel group with specified speed mode. Note that not all targets support high speed mode.
362
-
* @param timer_sel Timer index (0-3), there are 4 timers in LEDC module
363
-
* @param clock_divider Timer clock divide value, the timer clock is divided from the selected clock source
364
-
* @param duty_resolution Resolution of duty setting in number of bits. The range is [1, SOC_LEDC_TIMER_BIT_WIDTH]
365
-
* @param clk_src Select LEDC source clock.
366
-
*
367
-
* @return
368
-
* - (-1) Parameter error
369
-
* - Other Current LEDC duty
370
-
*/
371
-
esp_err_tledc_timer_set(ledc_mode_tspeed_mode, ledc_timer_ttimer_sel, uint32_tclock_divider, uint32_tduty_resolution, ledc_clk_src_tclk_src) __attribute__((deprecated("Please use ledc_timer_config() or ledc_set_freq()")));
334
+
esp_err_tledc_isr_register(void (*fn)(void*), void*arg, intintr_alloc_flags, ledc_isr_handle_t*handle) __attribute__((deprecated("LEDC interrupt handling is implemented by driver itself, please only register event callbacks if necessary")));
// wait until the last duty change took effect (duty_start bit will be self-cleared when duty update or fade is done)
490
+
// this is necessary on ESP32 only, otherwise, internal logic might mess up (later targets with SOC_LEDC_SUPPORT_FADE_STOP allow to re-configure parameters while last update is still in progress)
491
+
while (hw->channel_group[speed_mode].channel[channel_num].conf1.duty_start);
0 commit comments