Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TY
TianYing_ty100
Commits
0494bb29
Commit
0494bb29
authored
Sep 10, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:删除未使用用代码文件
parent
5479b5e7
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
3 additions
and
173 deletions
+3
-173
TianYing.uvprojx
...ware/Project/Cmsemicon/BAT32A239/MDK_ARM/TianYing.uvprojx
+0
-20
TianYing200.BAT
Firmware/Project/Cmsemicon/BAT32A239/MDK_ARM/TianYing200.BAT
+0
-61
Components.h
Firmware/Source/Component/Components.h
+1
-2
Light_Sensor.h
Firmware/Source/Component/Light_Sensor/Light_Sensor.h
+0
-45
Light_Sensor_Interface.c
...re/Source/Component/Light_Sensor/Light_Sensor_Interface.c
+0
-35
Light_Sensor_Interface.h
...re/Source/Component/Light_Sensor/Light_Sensor_Interface.h
+0
-8
Light_Sensor_V1.0.lib
Firmware/Source/Component/Light_Sensor/Light_Sensor_V1.0.lib
+0
-0
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+2
-2
No files found.
Firmware/Project/Cmsemicon/BAT32A239/MDK_ARM/TianYing.uvprojx
View file @
0494bb29
...
@@ -738,26 +738,6 @@
...
@@ -738,26 +738,6 @@
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\Analog\Analog_Signals.h
</FilePath>
<FilePath>
..\..\..\..\Source\Component\Analog\Analog_Signals.h
</FilePath>
</File>
</File>
<File>
<FileName>
Light_Sensor.h
</FileName>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\Light_Sensor\Light_Sensor.h
</FilePath>
</File>
<File>
<FileName>
Light_Sensor_Interface.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\Component\Light_Sensor\Light_Sensor_Interface.c
</FilePath>
</File>
<File>
<FileName>
Light_Sensor_Interface.h
</FileName>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\Light_Sensor\Light_Sensor_Interface.h
</FilePath>
</File>
<File>
<FileName>
Light_Sensor_V1.0.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\Light_Sensor\Light_Sensor_V1.0.lib
</FilePath>
</File>
<File>
<File>
<FileName>
CAN_Lib.h
</FileName>
<FileName>
CAN_Lib.h
</FileName>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
...
...
Firmware/Project/Cmsemicon/BAT32A239/MDK_ARM/TianYing200.BAT
View file @
0494bb29
SET PATH=C:\Keil_v5\ARM\ARMCC\Bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\tyw05\AppData\Local\Microsoft\WindowsApps;
SET ARMCC5_ASMOPT=--diag_suppress=9931
SET ARMCC5_CCOPT=--diag_suppress=9931
SET ARMCC5_LINKOPT=--diag_suppress=9931
SET CPU_TYPE=BAT32G139GK64FB
SET CPU_VENDOR=Cmsemicon
SET UV2_TARGET=TianYing200
SET CPU_CLOCK=0x00B71B00
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\data_fuel.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\backlight.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\data_espeed.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\data_vspeed.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\gpiouser.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\can_ch0_can_communication_matrix.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\commoninterface.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\seg_display.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\gui_display.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\can_user.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\can_app.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\data_tpms.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\data_voltage.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\bluetooth.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\protocol_crc16.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\protocol_lib.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\protocol_user.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\code.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\data_coolant.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\bu98r10.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\services_mileage_user.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\eemanager_interface.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\key_user.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\line_in_user.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\led_driver_interface.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\simulated_iic_2_master.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\analog_circuits.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\analog_signals.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\light_sensor_interface.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\powermanag_user.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\system_monitor_user.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\telltales_user.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\system_monitor.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\service_interval.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\service_interval_user.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\rte_tick_timer_bat32a239.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\rte_wdt_bat32a239.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\rte_gpio_bat32a239.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\deepsleep.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\rte_rtc.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\trmerm.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\rte_adc_interim_version.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\rte_can.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\rte_clock_select_bat32a239.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\uart_demo.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\main.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\sys_scheduler.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\sys_scheduler_lib.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\sys_task_list.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\adc.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\can.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\cgc.__i"
"C:\Keil
\ No newline at end of file
Firmware/Source/Component/Components.h
View file @
0494bb29
...
@@ -22,8 +22,7 @@
...
@@ -22,8 +22,7 @@
#include "LED_Driver\Simulated_IIC_2_Master.h"
#include "LED_Driver\Simulated_IIC_2_Master.h"
#include "LED_Driver\LED_Driver_Interface.h"
#include "LED_Driver\LED_Driver_Interface.h"
#include "LED_Driver\LED_Driver.h"
#include "LED_Driver\LED_Driver.h"
#include "Light_Sensor\Light_Sensor.h"
#include "Light_Sensor\Light_Sensor_Interface.h"
#include "Analog\Analog_Signals.h"
#include "Analog\Analog_Signals.h"
#include "Analog\Analog_Circuits.h"
#include "Analog\Analog_Circuits.h"
#include "common.h"
#include "common.h"
...
...
Firmware/Source/Component/Light_Sensor/Light_Sensor.h
deleted
100644 → 0
View file @
5479b5e7
#ifndef LIGHT_SENSOR_H__
#define LIGHT_SENSOR_H__
/*-------------------------------------------------------------------------------------------*/
// #define LIGHT_SENSOR_PLATFORM_16BIT
#ifdef LIGHT_SENSOR_PLATFORM_16BIT
typedef
unsigned
char
ALS_uint8_t
;
typedef
unsigned
int
ALS_uint16_t
;
typedef
unsigned
long
ALS_uint32_t
;
#else
typedef
unsigned
char
ALS_uint8_t
;
typedef
unsigned
short
ALS_uint16_t
;
typedef
unsigned
int
ALS_uint32_t
;
#endif
/*-------------------------------------------------------------------------------------------*/
#define ALS_VERSIONS 0X01U
typedef
void
(
*
ALS_Hanle
)(
void
);
typedef
void
(
*
ALS_Hanle_Write
)(
ALS_uint8_t
u8ALSData
);
typedef
ALS_uint8_t
(
*
ALS_Hanle_Read
)(
void
);
typedef
struct
{
ALS_Hanle_Write
pfnALSDelay100usCB
;
/*100us 延时函数*/
ALS_Hanle
pfnALSIICStartCB
;
/*start 函数接口*/
ALS_Hanle
pfnALSIICStopCB
;
/*stop 函数接口*/
ALS_Hanle_Write
pfnALSIICTxDataCB
;
/*发送数据 函数接口*/
ALS_Hanle_Write
pfnALSIICTxACKCB
;
/*发送ACK 函数接口*/
ALS_Hanle_Read
pfnALSIICRxDataCB
;
/*接收数据 函数接口*/
ALS_Hanle_Read
pfnALSIICRxACKCB
;
/*接收ACK 函数接口*/
}
Light_Sensor_Par_st_t
;
/*-------------------------------------------------------------------------------------------*/
/*
返回0:初始化成功
返回1:初始化失败
*/
extern
ALS_uint8_t
ALS_Init
(
Light_Sensor_Par_st_t
*
pstALSInitPar
);
/*根据需要的数据更新频率进行调用*/
extern
void
ALS_Service
(
void
);
extern
ALS_uint16_t
ALS_Get_Data0
(
void
);
extern
ALS_uint16_t
ALS_Get_Data1
(
void
);
/*-------------------------------------------------------------------------------------------*/
#endif
Firmware/Source/Component/Light_Sensor/Light_Sensor_Interface.c
deleted
100644 → 0
View file @
5479b5e7
#include "Light_Sensor.h"
#include "Light_Sensor_Interface.h"
#include "Simulated_IIC_2_Master.h"
void
ALS_Delay_100us
(
ALS_uint8_t
u8ALSData
)
{
ALS_uint32_t
ALSDelayCount
=
0
;
ALS_uint32_t
i
=
0
;
ALS_uint32_t
j
=
0
;
for
(
j
=
0
;
j
<
u8ALSData
;
j
++
)
{
for
(
i
=
0
;
i
<
1000
;
i
++
)
{
ALSDelayCount
++
;
}
}
}
/****************初始化函数调用示例*************/
void
Light_Sensor_Init_Example
(
void
)
{
Light_Sensor_Par_st_t
stALSInitPar
;
stALSInitPar
.
pfnALSDelay100usCB
=
ALS_Delay_100us
;
stALSInitPar
.
pfnALSIICStartCB
=
Simulated_IIC_2_Start
;
stALSInitPar
.
pfnALSIICStopCB
=
Simulated_IIC_2_Stop
;
stALSInitPar
.
pfnALSIICTxDataCB
=
Simulated_IIC_2_Transmit_Data
;
stALSInitPar
.
pfnALSIICTxACKCB
=
Simulated_IIC_2_Transmit_ACK
;
stALSInitPar
.
pfnALSIICRxDataCB
=
Simulated_IIC_2_Receive_Data
;
stALSInitPar
.
pfnALSIICRxACKCB
=
Simulated_IIC_2_Receive_ACK
;
ALS_Init
(
&
stALSInitPar
);
}
Firmware/Source/Component/Light_Sensor/Light_Sensor_Interface.h
deleted
100644 → 0
View file @
5479b5e7
#ifndef LIGHT_SENSOR_INTERFACE_H__
#define LIGHT_SENSOR_INTERFACE_H__
/*-----------------------------------------------------------*/
extern
void
Light_Sensor_Init_Example
(
void
);
#endif
Firmware/Source/Component/Light_Sensor/Light_Sensor_V1.0.lib
deleted
100644 → 0
View file @
5479b5e7
File deleted
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
0494bb29
...
@@ -83,7 +83,7 @@ static void Power_KL30_Init(void)
...
@@ -83,7 +83,7 @@ static void Power_KL30_Init(void)
Data_Coolant_Temp_KL30_Init
();
Data_Coolant_Temp_KL30_Init
();
LINE_IN_Init
();
LINE_IN_Init
();
Key_KL30_Init_EXample
();
Key_KL30_Init_EXample
();
//Light_Sensor_Init_Example();//注意顺序1
LED_Driver_Init_Example
();
//注意顺序2
LED_Driver_Init_Example
();
//注意顺序2
LED_Driver_Service_Immediate
();
LED_Driver_Service_Immediate
();
Data_User_Mileage_KL30Init
();
Data_User_Mileage_KL30Init
();
...
@@ -152,7 +152,7 @@ static void Power_Wakeup_Init(void)
...
@@ -152,7 +152,7 @@ static void Power_Wakeup_Init(void)
Key_KL30_Init_EXample
();
Key_KL30_Init_EXample
();
Line_In_KL15_ON_Init
();
Line_In_KL15_ON_Init
();
MenuData_TCS_Init
();
MenuData_TCS_Init
();
//Light_Sensor_Init_Example();//注意顺序1
LED_Driver_Init_Example
();
//注意顺序2
LED_Driver_Init_Example
();
//注意顺序2
LED_Driver_Service_Immediate
();
LED_Driver_Service_Immediate
();
Protocol_KL30_Wakeup_Init
();
Protocol_KL30_Wakeup_Init
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment