mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-31 11:45:35 +08:00
[drv_can.c]fix 3 warings
This commit is contained in:
@@ -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)
|
if (argval != can->config.baud_rate)
|
||||||
{
|
{
|
||||||
CAN_InitTypeDef *drv_init;
|
|
||||||
rt_uint32_t baud_index;
|
|
||||||
can->config.baud_rate = argval;
|
can->config.baud_rate = argval;
|
||||||
return drv_configure(can, &can->config);
|
return drv_configure(can, &can->config);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ struct stm32_drv_can
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
rt_err_t rt_hw_can_init(void);
|
int rt_hw_can_init(void);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user