ledc: Channel configuration requires the ledc core clock on to be effective. Therefore, a clock source is selected for the core clock since the peripheral initialization. Additionally, correct the usage of channel para_up and duty_start bits.

This commit is contained in:
Song Ruo Jing
2022-12-15 16:32:12 +08:00
parent a92dce463f
commit 662df0da3b
5 changed files with 18 additions and 2 deletions

View File

@@ -9,6 +9,7 @@
#include "esp_attr.h"
#include "hal/ledc_hal.h"
#include "soc/soc_caps.h"
#include "sdkconfig.h"
#include "hal/assert.h"
void ledc_hal_init(ledc_hal_context_t *hal, ledc_mode_t speed_mode)