Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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 的改动“ 有何关系?请解释一下

{
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
2 changes: 1 addition & 1 deletion bsp/cvitek/drivers/drv_hw_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ int rt_hw_i2c_init(void)

for (rt_size_t i = 0; i < sizeof(_i2c_obj) / sizeof(struct dw_iic_bus); i++)
{
_i2c_obj->iic_base = (rt_ubase_t)DRV_IOREMAP((void *)_i2c_obj->iic_basee, 0x10000);
_i2c_obj->iic_base = (rt_ubase_t)DRV_IOREMAP((void *)_i2c_obj->iic_base, 0x10000);
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.

奇怪这个当时编译竟然能过?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

感觉有必要给这个bsp添加个ciattach了

dw_iic_init(_i2c_obj->iic_base);

_i2c_obj[i].parent.ops = &i2c_ops;
Expand Down
Loading