hal: Adds hal/ll func for SYSTIMER to select clock source: XTAL or RC_FAST_CLK

This commit is contained in:
KonstantinKondrashov
2022-11-17 21:29:16 +08:00
parent 670fda877d
commit 63f852adc8
17 changed files with 167 additions and 0 deletions

View File

@@ -118,6 +118,15 @@ typedef enum {
SOC_MOD_CLK_PLL, /*< PLL_CLK is the output of 32MHz crystal oscillator frequency multiplier, 96MHz */
} soc_module_clk_t;
//////////////////////////////////////////////////SYSTIMER///////////////////////////////////////////////////////////////
/**
* @brief Type of SYSTIMER clock source
*/
typedef enum {
SYSTIMER_CLK_SRC_XTAL = SOC_MOD_CLK_XTAL, /*!< SYSTIMER source clock is XTAL */
SYSTIMER_CLK_SRC_DEFAULT = SOC_MOD_CLK_XTAL, /*!< SYSTIMER source clock default choice is XTAL */
} soc_periph_systimer_clk_src_t;
//////////////////////////////////////////////////GPTimer///////////////////////////////////////////////////////////////