From 23c7a2c6283c535bd575a69a4e01c9fedb062d8a Mon Sep 17 00:00:00 2001 From: Chen Yi Qun Date: Fri, 25 Jun 2021 20:25:45 +0800 Subject: [PATCH] LEDC: fix bit error in ledc_struct.h(backport v4.2) --- components/soc/soc/esp32s2/include/soc/ledc_struct.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/soc/soc/esp32s2/include/soc/ledc_struct.h b/components/soc/soc/esp32s2/include/soc/ledc_struct.h index 4fe5af2cbf..a6f02a788b 100644 --- a/components/soc/soc/esp32s2/include/soc/ledc_struct.h +++ b/components/soc/soc/esp32s2/include/soc/ledc_struct.h @@ -30,8 +30,7 @@ typedef volatile struct { uint32_t ovf_cnt_en: 1; uint32_t ovf_cnt_rst: 1; uint32_t ovf_cnt_rst_st: 1; - uint32_t reserved18: 13; - uint32_t clk_en: 1; /*This bit is clock gating control signal. when software configure LED_PWM internal registers it controls the register clock.*/ + uint32_t reserved18: 14; }; uint32_t val; } conf0; @@ -198,7 +197,8 @@ typedef volatile struct { union { struct { uint32_t apb_clk_sel: 2; // 0:invalid; 1:80MHz APB clock; 2:8MHz RTC clock; 3:XTAL clock - uint32_t reserved2: 30; + uint32_t reserved2: 29; + uint32_t clk_en: 1; /*This bit is clock gating control signal. when software configure LED_PWM internal registers it controls the register clock.*/ }; uint32_t val; } conf;