Skip to content

Commit fa0a61c

Browse files
CYFS3BernardXiong
authored andcommitted
[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.
1 parent ae5b5ed commit fa0a61c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bsp/cvitek/c906_little/board/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
rt_uint64_t rt_hw_get_clock_timer_freq(void)
1818
{
19-
return 245000000ULL;
19+
return 25000000ULL;
2020
}
2121

2222
void rt_hw_board_init(void)

bsp/cvitek/cv18xx_risc-v/board/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct mem_desc platform_mem_desc[] = {
4848

4949
rt_uint64_t rt_hw_get_clock_timer_freq(void)
5050
{
51-
return 245000000ULL;
51+
return 25000000ULL;
5252
}
5353

5454
void init_bss(void)

0 commit comments

Comments
 (0)