Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bsp/cvitek/c906_little/board/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
#include "tick.h"
#include "drv_uart.h"

rt_uint64_t rt_hw_get_clock_timer_freq(void)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 patch 修改和 PR 描述里的 ”修复 #11111 的改动“ 有何关系?请解释一下

Copy link
Copy Markdown
Contributor Author

@CYFS3 CYFS3 Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 patch 修改和 PR 描述里的 ”修复 #11111 的改动“ 有何关系?请解释一下

rt_weak rt_uint64_t rt_hw_get_clock_timer_freq(void)
{
return CLOCK_TIMER_FREQ;
}

需要提供真实的频率,参考此pr中其他bsp也重写了rt_hw_get_clock_timer_freq。

{
return 245000000ULL;
}

void rt_hw_board_init(void)
{
#ifdef RT_USING_HEAP
Expand Down
5 changes: 5 additions & 0 deletions bsp/cvitek/cv18xx_aarch64/board/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ struct mem_desc platform_mem_desc[] =

const rt_uint32_t platform_mem_desc_size = sizeof(platform_mem_desc) / sizeof(platform_mem_desc[0]);

rt_uint64_t rt_hw_get_clock_timer_freq(void)
{
return 25000000ULL;
}

void rt_hw_board_init(void)
{
#ifdef RT_USING_SMART
Expand Down
5 changes: 5 additions & 0 deletions bsp/cvitek/cv18xx_risc-v/board/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ struct mem_desc platform_mem_desc[] = {

#endif /* RT_USING_SMART */

rt_uint64_t rt_hw_get_clock_timer_freq(void)
{
return 245000000ULL;
}

void init_bss(void)
{
unsigned int *dst;
Expand Down