summaryrefslogtreecommitdiff
path: root/components/drivers/can
diff options
context:
space:
mode:
authorFan Yang <[email protected]>2022-08-14 10:59:28 +0800
committerGitHub <[email protected]>2022-08-13 22:59:28 -0400
commit666af5e29d04b46f4b88cd10eed0ddee8f9103aa (patch)
tree541b2a119ce5c5360e5db7ed6609a8b8d8229272 /components/drivers/can
parent0189987d91f70f664b6b3d09c7f3bb7fbe105716 (diff)
[DeviceDriver] Add CANFD support and correct typos (#5912)
* Add CANFD support and correct typos - Added CANFD required fields to can.h - Fixed typos in can.h and can.c - Corrected all the projects affected by the typo - Fixed wrong line-ending in some affected can driver files Signed-off-by: Fan YANG <[email protected]> * update Signed-off-by: Fan YANG <[email protected]> Co-authored-by: Meco Man <[email protected]>
Diffstat (limited to 'components/drivers/can')
-rw-r--r--components/drivers/can/can.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/can/can.c b/components/drivers/can/can.c
index 358220013f..f110bc9e1f 100644
--- a/components/drivers/can/can.c
+++ b/components/drivers/can/can.c
@@ -924,7 +924,7 @@ int cmd_canstat(int argc, void **argv)
rt_kprintf(" Can't find can device %s\n", argv[1]);
return -1;
}
- rt_kprintf(" Finded can device: %s...", argv[1]);
+ rt_kprintf(" Found can device: %s...", argv[1]);
rt_device_control(candev, RT_CAN_CMD_GET_STATUS, &status);
rt_kprintf("\n Receive...error..count: %010ld. Send.....error....count: %010ld.",
@@ -954,9 +954,9 @@ int cmd_canstat(int argc, void **argv)
rt_kprintf("%s.", ErrCode[3]);
break;
}
- rt_kprintf("\n Total.receive.packages: %010ld. Droped.receive.packages: %010ld.",
+ rt_kprintf("\n Total.receive.packages: %010ld. Dropped.receive.packages: %010ld.",
status.rcvpkg, status.dropedrcvpkg);
- rt_kprintf("\n Total..send...packages: %010ld. Droped...send..packages: %010ld.\n",
+ rt_kprintf("\n Total..send...packages: %010ld. Dropped...send..packages: %010ld.\n",
status.sndpkg + status.dropedsndpkg, status.dropedsndpkg);
}
else