summaryrefslogtreecommitdiff
path: root/bsp/imxrt
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 /bsp/imxrt
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 'bsp/imxrt')
-rw-r--r--bsp/imxrt/libraries/drivers/drv_can.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/imxrt/libraries/drivers/drv_can.c b/bsp/imxrt/libraries/drivers/drv_can.c
index c44ec9ab69..6af614418c 100644
--- a/bsp/imxrt/libraries/drivers/drv_can.c
+++ b/bsp/imxrt/libraries/drivers/drv_can.c
@@ -135,12 +135,12 @@ static rt_err_t can_cfg(struct rt_can_device *can_dev, struct can_configure *cfg
case RT_CAN_MODE_NORMAL:
/* default mode */
break;
- case RT_CAN_MODE_LISEN:
+ case RT_CAN_MODE_LISTEN:
break;
case RT_CAN_MODE_LOOPBACK:
config.enableLoopBack = true;
break;
- case RT_CAN_MODE_LOOPBACKANLISEN:
+ case RT_CAN_MODE_LOOPBACKANLISTEN:
break;
}
FLEXCAN_Init(can->base, &config, GetCanSrcFreq());