mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
Merge branch 'esp32c5/add_adc_support' into 'master'
ADC: bringup ADC oneshot and continuous mode on C5 Closes IDF-8701 and IDF-8703 See merge request espressif/esp-idf!31940
This commit is contained in:
@@ -565,6 +565,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