Skip to content

Commit

Permalink
Update serial.h
Browse files Browse the repository at this point in the history
修改serial.h的引用错误
  • Loading branch information
zylugl committed Jun 5, 2023
1 parent ed4ed10 commit e447f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/drivers/include/drivers/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ struct rt_serial_rx_fifo

struct rt_serial_tx_fifo
{
struct rt_completion completion;
struct rt_completion *completion;
};

/*
Expand Down

2 comments on commit e447f4c

@zylugl
Copy link
Contributor Author

@zylugl zylugl commented on e447f4c Jun 5, 2023

Choose a reason for hiding this comment

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

在准备修改串口波特率时发现这个结构体初始化是错误,函数原型在completion.h中的定义是:`struct rt_completion
{
rt_uint32_t flag;

/* suspended list */
rt_list_t suspended_list;

};
`
我看其他的结构声明是:void rt_completion_init(struct rt_completion *completion);
验证,我修改后,程序是可以跑通的,但是会报一些警告,我也不知道是不是修改得对,请审核人员提出批评指正。

@Guozhanxin
Copy link
Member

Choose a reason for hiding this comment

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

在准备修改串口波特率时发现这个结构体初始化是错误,函数原型在completion.h中的定义是:`struct rt_completion { rt_uint32_t flag;

/* suspended list */
rt_list_t suspended_list;

}; ` 我看其他的结构声明是:void rt_completion_init(struct rt_completion *completion); 验证,我修改后,程序是可以跑通的,但是会报一些警告,我也不知道是不是修改得对,请审核人员提出批评指正。

看ci的编译结果,应该不能这么改的,都报错误了。

Please sign in to comment.