summaryrefslogtreecommitdiff
path: root/bsp/ls1cdev/libraries/ls1c_can.c
diff options
context:
space:
mode:
authorsundm75 <[email protected]>2018-12-24 18:49:00 +0800
committersundm75 <[email protected]>2018-12-24 18:49:00 +0800
commit029e161f594ec46eb96ed878ea31f17037740848 (patch)
tree1a6eb411e17fd8c282b495f295f05cf97d72a8ec /bsp/ls1cdev/libraries/ls1c_can.c
parentd592b41dfdc0b3b627c7d4eda9d7b85633f73c4b (diff)
[BSP][all ls1c]change license to Apache-2.0
[BSP][ls1c] add rtc library [BSP][ls1c] add pwm ,touch , rtc driver
Diffstat (limited to 'bsp/ls1cdev/libraries/ls1c_can.c')
-rw-r--r--bsp/ls1cdev/libraries/ls1c_can.c25
1 files changed, 6 insertions, 19 deletions
diff --git a/bsp/ls1cdev/libraries/ls1c_can.c b/bsp/ls1cdev/libraries/ls1c_can.c
index f113e60990..437ef3ba84 100644
--- a/bsp/ls1cdev/libraries/ls1c_can.c
+++ b/bsp/ls1cdev/libraries/ls1c_can.c
@@ -1,21 +1,7 @@
/*
- * File : ls1c_can.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
+ * Copyright (c) 2006-2018, RT-Thread Development Team
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
@@ -25,6 +11,7 @@
#include "ls1c.h"
#include "ls1c_public.h"
#include "ls1c_can.h"
+#include "ls1c_delay.h"
unsigned char set_reset_mode(CAN_TypeDef* CANx)
{
@@ -51,7 +38,7 @@ unsigned char set_reset_mode(CAN_TypeDef* CANx)
/*检查复位标志*/
status = CANx->MOD;
}
- rt_kprintf("\r\nSetting SJA1000 into reset mode failed!\r\n");
+ printf("\r\nSetting SJA1000 into reset mode failed!\r\n");
return 0;
}
@@ -77,7 +64,7 @@ static unsigned char set_normal_mode(CAN_TypeDef* CANx)
delay_us(10);
status = CANx->MOD;
}
- rt_kprintf("\r\nSetting SJA1000 into normal mode failed!\r\n");
+ printf("\r\nSetting SJA1000 into normal mode failed!\r\n");
return 0;
}
@@ -102,7 +89,7 @@ unsigned char CAN_Init(CAN_TypeDef* CANx, CAN_InitTypeDef* CAN_InitStruct)
status = CANx->MOD;
if( status == 0xFF)
{
- rt_kprintf("\n Probe can0 failed \r\n");
+ printf("\n Probe can0 failed \r\n");
return CAN_InitStatus_Failed;
}