Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bsp][wch]增加适配CH32V208 CAN驱动 #7366

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
Update drv_can.c
  • Loading branch information
zylugl committed Apr 24, 2023
commit ce5a86b4358955ff94e9408c221b5f04e5f0ed39
2 changes: 1 addition & 1 deletion bsp/wch/risc-v/Libraries/ch32_drivers/drv_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct ch32v307x_can_obj
* sample = 80% at baud > 500K
* sample = 75% at baud > 800K
*/
#if (defined CH32V30x_D8C) || (defined SOC_CH32V208WBU6) /* APB1 (PCLK1 72MHz) */
#if (defined CH32V30x_D8C) || (defined CH32V30x_D8C) /* APB1 (PCLK1 72MHz) */
static const struct ch32v307x_can_baud_info can_baud_rate_tab[] =
{
CH32V307X_CAN_BAUD_DEF( CAN1MBaud, CAN_SJW_1tq, CAN_BS1_15tq, CAN_BS2_2tq, 4),
Expand Down