From c014d32193183d60552e8d622df7b688e7571b63 Mon Sep 17 00:00:00 2001 From: Paul Abbott Date: Wed, 31 Oct 2018 18:01:00 -0400 Subject: [PATCH] Bugfix(LEDC): Add missing ledc_set_pin declaration in led.h --- components/driver/include/driver/ledc.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/components/driver/include/driver/ledc.h b/components/driver/include/driver/ledc.h index fb3ffcaf09..f4ca90bc7e 100644 --- a/components/driver/include/driver/ledc.h +++ b/components/driver/include/driver/ledc.h @@ -74,6 +74,19 @@ esp_err_t ledc_timer_config(const ledc_timer_config_t* timer_conf); */ esp_err_t ledc_update_duty(ledc_mode_t speed_mode, ledc_channel_t channel); +/** + * @brief Set LEDC output gpio. + * + * @param gpio_num The LEDC output gpio + * @param speed_mode Select the LEDC speed_mode, high-speed mode and low-speed mode + * @param ledc_channel LEDC channel (0-7), select from ledc_channel_t + * + * @return + * - ESP_OK Success + * - ESP_ERR_INVALID_ARG Parameter error + */ +esp_err_t ledc_set_pin(int gpio_num, ledc_mode_t speed_mode, ledc_channel_t ledc_channel); + /** * @brief LEDC stop. * Disable LEDC output, and set idle level