From f972cd4bbdf0be3fab643abe8e8be732edb62381 Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Tue, 27 Aug 2024 10:55:51 +0200 Subject: [PATCH] feat(clk): Addded support for LP ADC clock source for esp32p4 This commit adds support for the LP ADC clock source on the esp32p4. --- components/soc/esp32p4/include/soc/clk_tree_defs.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/components/soc/esp32p4/include/soc/clk_tree_defs.h b/components/soc/esp32p4/include/soc/clk_tree_defs.h index 307392faab..8e140f0571 100644 --- a/components/soc/esp32p4/include/soc/clk_tree_defs.h +++ b/components/soc/esp32p4/include/soc/clk_tree_defs.h @@ -635,6 +635,20 @@ typedef enum { ADC_RTC_CLK_SRC_DEFAULT = SOC_MOD_CLK_RC_FAST, /*!< Select RC_FAST as the default clock choice */ } soc_periph_adc_rtc_clk_src_t; +///////////////////////////////////////////////LP_ADC/////////////////////////////////////////////////////////////////// + +/** + * @brief Array initializer for all supported clock sources of LP_ADC + */ +#define SOC_LP_ADC_CLKS {SOC_MOD_CLK_LP_DYN_FAST} + +/** + * @brief LP ADC controller clock source + */ +typedef enum { + LP_ADC_CLK_SRC_LP_DYN_FAST = SOC_MOD_CLK_LP_DYN_FAST, /*!< Select LP_DYN_FAST as the source clock */ +} soc_periph_lp_adc_clk_src_t; + //////////////////////////////////////////////////MWDT///////////////////////////////////////////////////////////////// /**