[drv_can.c]fix 3 warings

This commit is contained in:
杨连钊 2019-06-28 10:57:37 +08:00
parent 9e74077928
commit b1f4e192ad
2 changed files with 1 additions and 3 deletions

View File

@ -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);
}

View File

@ -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