提交 b1f4e192 编写于 作者: 杨连钊

[drv_can.c]fix 3 warings

上级 9e740779
......@@ -586,8 +586,6 @@ static rt_err_t drv_control(struct rt_can_device *can, int cmd, void *arg)
}
if (argval != can->config.baud_rate)
{
CAN_InitTypeDef *drv_init;
rt_uint32_t baud_index;
can->config.baud_rate = argval;
return drv_configure(can, &can->config);
}
......
......@@ -43,7 +43,7 @@ struct stm32_drv_can
#ifdef __cplusplus
extern "C" {
#endif
rt_err_t rt_hw_can_init(void);
int rt_hw_can_init(void);
#ifdef __cplusplus
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册