Skip to content

Commit

Permalink
fix(esp_clk_tree): SOC_MOD_CLK_REF_TICK now uses the corresponding de…
Browse files Browse the repository at this point in the history
…fine
  • Loading branch information
Andste82 committed Aug 30, 2024
1 parent 6e5414b commit 42af06e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/esp_hw_support/port/esp32/esp_clk_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ uint32_t *freq_value)
clk_src_freq = esp_clk_tree_xtal32k_get_freq_hz(precision);
break;
case SOC_MOD_CLK_REF_TICK:
clk_src_freq = 1 * MHZ;
clk_src_freq = REF_CLK_FREQ;
break;
case SOC_MOD_CLK_APLL:
clk_src_freq = clk_hal_apll_get_freq_hz();
Expand Down
2 changes: 1 addition & 1 deletion components/esp_hw_support/port/esp32s2/esp_clk_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ uint32_t *freq_value)
clk_src_freq = esp_clk_tree_xtal32k_get_freq_hz(precision);
break;
case SOC_MOD_CLK_REF_TICK:
clk_src_freq = 1 * MHZ;
clk_src_freq = REF_CLK_FREQ;
break;
case SOC_MOD_CLK_APLL:
clk_src_freq = clk_hal_apll_get_freq_hz();
Expand Down

0 comments on commit 42af06e

Please sign in to comment.