no read function in rpmsg

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

no read function in rpmsg

910 次查看
jingfeng
Contributor I

I run the rpmsg example from NXP SDK .

 

from the m4 core ,there is a "result = rpmsg_lite_send_nocopy(my_rpmsg, my_ept, remote_addr, tx_buf, len);" funtion to send msg to A53 core.

 

from A53 kernel file imx_rpmsg_tty.c, there is no read rpmsg funtion.

static const struct tty_operations imxrpmsgtty_ops = {
.install = rpmsgtty_install,
.open = rpmsgtty_open,
.close = rpmsgtty_close,
.write = rpmsgtty_write,
.write_room = rpmsgtty_write_room,
};
 
how to make A53 read rpmsg from m4 basing on imx_rpmsg_tty driver?
0 项奖励
回复
1 回复

854 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @jingfeng,

I hope you are doing well.

there is no read() operation available in tty_operations struct & polling function is not implemented in the demo driver.

A53 can read rpmsg from m4 using  .callback function rpmsg_tty_cb.

callback function is invoked when a message is received on the channel

In rpmsg_tty_cb , void *data variable contains the msg received from M4 SDK side.

One can also refer to imx_rpmsg_pingpong.c driver for reference.

I hope it helps!

Thanks & Regards,
Dhruvit Vasavada

0 项奖励
回复