mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-15 06:36:00 +00:00
[bsp][cvitek] fix timer clock frequency for 25MHz crystal
Update rt_hw_get_clock_timer_freq() in the c906_little and cv18xx_risc-v BSPs from 245000000 to 25000000. The timer clock source uses a 25MHz crystal, so the previous 245MHz setting was incorrect and caused wrong timer frequency reporting.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
rt_uint64_t rt_hw_get_clock_timer_freq(void)
|
||||
{
|
||||
return 245000000ULL;
|
||||
return 25000000ULL;
|
||||
}
|
||||
|
||||
void rt_hw_board_init(void)
|
||||
|
||||
@@ -48,7 +48,7 @@ struct mem_desc platform_mem_desc[] = {
|
||||
|
||||
rt_uint64_t rt_hw_get_clock_timer_freq(void)
|
||||
{
|
||||
return 245000000ULL;
|
||||
return 25000000ULL;
|
||||
}
|
||||
|
||||
void init_bss(void)
|
||||
|
||||
Reference in New Issue
Block a user