mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 18:43:31 +08:00
[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…
x
Reference in New Issue
Block a user