Skip to content

Commit

Permalink
[hal/stm32h7rsxx][hal/gd32h7xx] update vsf_arch_req___systimer_freq__…
Browse files Browse the repository at this point in the history
…_from_usr
  • Loading branch information
versaloon committed Oct 23, 2024
1 parent 6c360c1 commit 80f2301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions source/hal/driver/GigaDevice/GD32H7XX/common/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,8 +767,7 @@ vsf_err_t vsf_hw_pll_vco_config(const vsf_hw_clk_t *clk, uint_fast8_t src_presca

uint_fast32_t vsf_arch_req___systimer_freq___from_usr(void)
{
// SysTick runs at CK_SYS / 2
return vsf_hw_clk_get_freq_hz(&VSF_HW_CLK_SYS) >> 1;
return vsf_hw_clk_get_freq_hz(&VSF_HW_CLK_SYS);
}


Expand Down
3 changes: 1 addition & 2 deletions source/hal/driver/ST/STM32H7RSXX/common/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,7 @@ vsf_err_t vsf_hw_pll_vco_config(const vsf_hw_clk_t *clk, uint_fast8_t src_presca

uint_fast32_t vsf_arch_req___systimer_freq___from_usr(void)
{
// SysTick runs at Fsys_cpu_clk / 8
return vsf_hw_clk_get_freq_hz(&VSF_HW_CLK_SYS_CPU) >> 3;
return vsf_hw_clk_get_freq_hz(&VSF_HW_CLK_SYS_CPU);
}


Expand Down

0 comments on commit 80f2301

Please sign in to comment.