clk_tree: Add a general API to get the frequency of different clocks

Add basic clk_tree driver and hal implementation.
This commit is contained in:
Song Ruo Jing
2022-12-28 15:04:51 +08:00
parent 1bf040e0b6
commit 2c9aa4559c
58 changed files with 1800 additions and 24 deletions

View File

@@ -30,6 +30,8 @@ extern "C" {
#define CLK_LL_PLL_320M_FREQ_MHZ (320)
#define CLK_LL_PLL_480M_FREQ_MHZ (480)
#define CLK_LL_AHB_MAX_FREQ_MHZ CLK_LL_PLL_80M_FREQ_MHZ
#define CLK_LL_XTAL32K_CONFIG_DEFAULT() { \
.dac = 3, \
.dres = 3, \