summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorYohozzy <[email protected]>2022-12-07 14:49:44 +0800
committerGitHub <[email protected]>2022-12-07 01:49:44 -0500
commit6fcbd418e56cc63c169af5bd9f5f5d1d1e734879 (patch)
tree79ba0bfac8524f74a8d61ee40adfa5e2b42ec1c6 /components/drivers/include
parent4dd0e670565b9156b6481e421e76fe52a3294b85 (diff)
canfd帧结构加入 brs控制位 (#6701)
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/can.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/can.h b/components/drivers/include/drivers/can.h
index 4bae9fcb16..0c8bf954bc 100644
--- a/components/drivers/include/drivers/can.h
+++ b/components/drivers/include/drivers/can.h
@@ -289,8 +289,9 @@ struct rt_can_msg
rt_int32_t hdr_index : 8;/*Should be defined as:rx.FilterMatchIndex,which should be changed to rt_int32_t hdr_index : 8*/
#ifdef RT_CAN_USING_CANFD
rt_uint32_t fd_frame : 1;
+ rt_uint32_t brs : 1;
rt_uint32_t rxfifo : 2;/*Redefined to return :CAN RX FIFO0/CAN RX FIFO1*/
- rt_uint32_t reserved : 5;
+ rt_uint32_t reserved : 4;
#else
rt_uint32_t rxfifo : 2;/*Redefined to return :CAN RX FIFO0/CAN RX FIFO1*/
rt_uint32_t reserved : 6;