[drv_can.c]fix 3 warings
This commit is contained in:
parent
9e74077928
commit
b1f4e192ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue