mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
fix(adc): fixed adc function register not reset issue
This commit is contained in:
parent
e37d33cc1c
commit
a387ec0123
@ -582,6 +582,8 @@ static inline void adc_ll_enable_func_clock(bool enable)
|
|||||||
*/
|
*/
|
||||||
static inline void adc_ll_reset_register(void)
|
static inline void adc_ll_reset_register(void)
|
||||||
{
|
{
|
||||||
|
PCR.saradc_conf.saradc_rst_en = 1;
|
||||||
|
PCR.saradc_conf.saradc_rst_en = 0;
|
||||||
PCR.saradc_conf.saradc_reg_rst_en = 1;
|
PCR.saradc_conf.saradc_reg_rst_en = 1;
|
||||||
PCR.saradc_conf.saradc_reg_rst_en = 0;
|
PCR.saradc_conf.saradc_reg_rst_en = 0;
|
||||||
}
|
}
|
||||||
|
@ -581,6 +581,8 @@ static inline void adc_ll_enable_func_clock(bool enable)
|
|||||||
*/
|
*/
|
||||||
static inline void adc_ll_reset_register(void)
|
static inline void adc_ll_reset_register(void)
|
||||||
{
|
{
|
||||||
|
PCR.saradc_conf.saradc_rst_en = 1;
|
||||||
|
PCR.saradc_conf.saradc_rst_en = 0;
|
||||||
PCR.saradc_conf.saradc_reg_rst_en = 1;
|
PCR.saradc_conf.saradc_reg_rst_en = 1;
|
||||||
PCR.saradc_conf.saradc_reg_rst_en = 0;
|
PCR.saradc_conf.saradc_reg_rst_en = 0;
|
||||||
}
|
}
|
||||||
|
@ -582,6 +582,8 @@ static inline void adc_ll_enable_func_clock(bool enable)
|
|||||||
*/
|
*/
|
||||||
static inline void adc_ll_reset_register(void)
|
static inline void adc_ll_reset_register(void)
|
||||||
{
|
{
|
||||||
|
PCR.saradc_conf.saradc_rst_en = 1;
|
||||||
|
PCR.saradc_conf.saradc_rst_en = 0;
|
||||||
PCR.saradc_conf.saradc_reg_rst_en = 1;
|
PCR.saradc_conf.saradc_reg_rst_en = 1;
|
||||||
PCR.saradc_conf.saradc_reg_rst_en = 0;
|
PCR.saradc_conf.saradc_reg_rst_en = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user