From d78c3198b29ba28d4a1ff238df81495325aa40cd Mon Sep 17 00:00:00 2001 From: sundm75 Date: Fri, 9 Feb 2018 10:59:28 +0800 Subject: [PATCH] [BSP][ls1c]Fix drv_can.c: No such file or directory(ls1c_can.h) --- bsp/ls1cdev/drivers/drv_can.c | 11 +++++------ bsp/ls1cdev/libraries/Ls1c_can.c | 2 +- bsp/ls1cdev/libraries/Ls1c_can.h | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/bsp/ls1cdev/drivers/drv_can.c b/bsp/ls1cdev/drivers/drv_can.c index 7c7e674fd0..92095d0669 100644 --- a/bsp/ls1cdev/drivers/drv_can.c +++ b/bsp/ls1cdev/drivers/drv_can.c @@ -29,13 +29,12 @@ #include - #include "ls1c.h" -#include "ls1c_public.h" -#include "ls1c_regs.h" -#include "ls1c_clock.h" -#include "ls1c_can.h" -#include "ls1c_pin.h" +#include "../libraries/ls1c_public.h" +#include "../libraries/ls1c_regs.h" +#include "../libraries/ls1c_clock.h" +#include "../libraries/ls1c_can.h" +#include "../libraries/ls1c_pin.h" #ifdef RT_USING_CAN diff --git a/bsp/ls1cdev/libraries/Ls1c_can.c b/bsp/ls1cdev/libraries/Ls1c_can.c index 3062e05253..f113e60990 100644 --- a/bsp/ls1cdev/libraries/Ls1c_can.c +++ b/bsp/ls1cdev/libraries/Ls1c_can.c @@ -93,7 +93,7 @@ unsigned char set_start(CAN_TypeDef* CANx) return set_normal_mode(CANx); } - unsigned char CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct) +unsigned char CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct) { unsigned char InitStatus = CAN_InitStatus_Failed; unsigned long wait_ack = 0x00000000; diff --git a/bsp/ls1cdev/libraries/Ls1c_can.h b/bsp/ls1cdev/libraries/Ls1c_can.h index 393205ad38..4e27a4b075 100644 --- a/bsp/ls1cdev/libraries/Ls1c_can.h +++ b/bsp/ls1cdev/libraries/Ls1c_can.h @@ -221,7 +221,7 @@ unsigned char CAN_Transmit(CAN_TypeDef* CANx, CanTxMsg* TxMessage); void CAN_Receive(CAN_TypeDef* CANx, CanRxMsg* RxMessage); unsigned char set_reset_mode(CAN_TypeDef* CANx); -unsigned char set_start(CAN_TypeDef* CANx); +unsigned char set_start(CAN_TypeDef* CANx); #endif