Skip to content

Commit 00fb41f

Browse files
committed
[hc32]hc32f460 has only one CAN, and it is defined as CM_CAN in hc32f460.h
1 parent 6a7e797 commit 00fb41f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/hc32/ev_hc32f460_lqfp100_v2/board/board_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ rt_err_t rt_hw_board_can_init(CM_CAN_TypeDef *CANx)
111111
switch ((rt_uint32_t)CANx)
112112
{
113113
#if defined(BSP_USING_CAN1)
114-
case (rt_uint32_t)CM_CAN1:
114+
case (rt_uint32_t)CM_CAN:
115115
GPIO_SetFunc(CAN1_TX_PORT, CAN1_TX_PIN, CAN1_TX_PIN_FUNC);
116116
GPIO_SetFunc(CAN1_RX_PORT, CAN1_RX_PIN, CAN1_RX_PIN_FUNC);
117117
break;

0 commit comments

Comments
 (0)