mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-18 01:29:02 +00:00
feat(adc): add ADC func clock enable function on C5,C6,H2
This commit is contained in:
@@ -566,6 +566,17 @@ static inline void adc_ll_enable_bus_clock(bool enable)
|
||||
PCR.saradc_conf.saradc_reg_clk_en = enable;
|
||||
}
|
||||
|
||||
#if SOC_RCC_IS_INDEPENDENT
|
||||
/**
|
||||
* @brief Enable the ADC function clock
|
||||
* @param enable true to enable, false to disable
|
||||
*/
|
||||
static inline void adc_ll_enable_func_clock(bool enable)
|
||||
{
|
||||
PCR.saradc_clkm_conf.saradc_clkm_en = enable;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Reset ADC module
|
||||
*/
|
||||
|
Reference in New Issue
Block a user