summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorxiao xie <[email protected]>2023-06-21 20:52:11 +0800
committerGitHub <[email protected]>2023-06-21 08:52:11 -0400
commitba76cb5ef74ce2bd9743e294bb06356dd939ed7b (patch)
tree68ceb56a7d5e5fb6f6da61964e419225c28004dc /components/drivers
parent33f550cb65c950068ff04c331daeeda3547d2e50 (diff)
[drivers]修复can驱动编译错误 (#7708)
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/include/drivers/can.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/include/drivers/can.h b/components/drivers/include/drivers/can.h
index ec69d35b5a..2ce60d8072 100644
--- a/components/drivers/include/drivers/can.h
+++ b/components/drivers/include/drivers/can.h
@@ -351,8 +351,8 @@ struct rt_can_ops
{
rt_err_t (*configure)(struct rt_can_device *can, struct can_configure *cfg);
rt_err_t (*control)(struct rt_can_device *can, int cmd, void *arg);
- int (*sendmsg)(struct rt_can_device *can, const void *buf, rt_uint32_t boxno);
- int (*recvmsg)(struct rt_can_device *can, void *buf, rt_uint32_t boxno);
+ rt_ssize_t (*sendmsg)(struct rt_can_device *can, const void *buf, rt_uint32_t boxno);
+ rt_ssize_t (*recvmsg)(struct rt_can_device *can, void *buf, rt_uint32_t boxno);
};
rt_err_t rt_hw_can_register(struct rt_can_device *can,