mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
fix(adc): fixed adc function register not reset issue
This commit is contained in:
parent
0902e70e94
commit
78e6ce0d35
@ -580,6 +580,8 @@ static inline void adc_ll_enable_func_clock(bool enable)
|
||||
*/
|
||||
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 = 0;
|
||||
}
|
||||
|
@ -579,6 +579,8 @@ static inline void adc_ll_enable_func_clock(bool enable)
|
||||
*/
|
||||
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 = 0;
|
||||
}
|
||||
|
@ -582,6 +582,8 @@ static inline void adc_ll_enable_func_clock(bool enable)
|
||||
*/
|
||||
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 = 0;
|
||||
}
|
||||
|
@ -589,6 +589,8 @@ static inline void adc_ll_enable_func_clock(bool enable)
|
||||
*/
|
||||
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 = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user