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
fd991c60
Commit
fd991c60
authored
May 07, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加胎压,电压,故障码等数据处理文件,未写逻辑,过后补充,增加部分CAN外发信号接口,解决编译报错
parent
e53e991e
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
95 additions
and
5 deletions
+95
-5
TianYing.uvprojx
...ware/Project/Cmsemicon/BAT32A239/MDK_ARM/TianYing.uvprojx
+40
-0
TianYing200.BAT
Firmware/Project/Cmsemicon/BAT32A239/MDK_ARM/TianYing200.BAT
+4
-0
Can_App.c
Firmware/Source/Application/CAN_User/Can_App.c
+21
-2
Data_Coolant.c
Firmware/Source/Application/Data_Coolant/Data_Coolant.c
+1
-1
Data_Coolant.h
Firmware/Source/Application/Data_Coolant/Data_Coolant.h
+1
-1
Data_TPMS.c
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
+2
-0
Data_TPMS.h
Firmware/Source/Application/Data_TPMS/Data_TPMS.h
+5
-0
Data_VSpeed.c
Firmware/Source/Application/Data_VSpeed/Data_VSpeed.c
+1
-1
Data_VSpeed.h
Firmware/Source/Application/Data_VSpeed/Data_VSpeed.h
+1
-0
Data_Voltage.c
Firmware/Source/Application/Data_Voltage/Data_Voltage.c
+2
-0
Data_Voltage.h
Firmware/Source/Application/Data_Voltage/Data_Voltage.h
+5
-0
FaultCode.c
Firmware/Source/Application/FaultCode/FaultCode.c
+2
-0
FaultCode.h
Firmware/Source/Application/FaultCode/FaultCode.h
+9
-0
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+1
-0
No files found.
Firmware/Project/Cmsemicon/BAT32A239/MDK_ARM/TianYing.uvprojx
View file @
fd991c60
...
...
@@ -503,6 +503,46 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Application\CAN_User\Can_App.h
</FilePath>
</File>
<File>
<FileName>
Data_Coolant.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\Application\Data_Coolant\Data_Coolant.c
</FilePath>
</File>
<File>
<FileName>
Data_Coolant.h
</FileName>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Application\Data_Coolant\Data_Coolant.h
</FilePath>
</File>
<File>
<FileName>
Data_TPMS.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\Application\Data_TPMS\Data_TPMS.c
</FilePath>
</File>
<File>
<FileName>
Data_TPMS.h
</FileName>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Application\Data_TPMS\Data_TPMS.h
</FilePath>
</File>
<File>
<FileName>
FaultCode.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\Application\FaultCode\FaultCode.c
</FilePath>
</File>
<File>
<FileName>
FaultCode.h
</FileName>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Application\FaultCode\FaultCode.h
</FilePath>
</File>
<File>
<FileName>
Data_Voltage.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\Application\Data_Voltage\Data_Voltage.c
</FilePath>
</File>
<File>
<FileName>
Data_Voltage.h
</FileName>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Application\Data_Voltage\Data_Voltage.h
</FilePath>
</File>
</Files>
</Group>
<Group>
...
...
Firmware/Project/Cmsemicon/BAT32A239/MDK_ARM/TianYing200.BAT
View file @
fd991c60
...
...
@@ -14,6 +14,10 @@ SET CPU_CLOCK=0x00B71B00
"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_coolant.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\data_tpms.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\faultcode.__i"
"C:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\objects\data_voltage.__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"
...
...
Firmware/Source/Application/CAN_User/Can_App.c
View file @
fd991c60
#include "Can_App.h"
#include "Components.h"
#include "Application.h"
void
Can_Set_Buff_220
(
canlib_uint8_t
CopyData
[])
...
...
@@ -21,7 +22,8 @@ void Can_Set_Buff_6EE(canlib_uint8_t CopyData[])
{
CANMsg6EEUnion
*
p6EE
;
uint8_t
i
=
0
;
uint16_t
Vspeed_tx
=
0
;
Vspeed_tx
=
Get_DispVechileSpeed_TX
()
/
10
;
p6EE
=
(
CANMsg6EEUnion
*
)
CopyData
;
if
(
p6EE
!=
(
void
*
)
0
)
{
...
...
@@ -29,13 +31,28 @@ void Can_Set_Buff_6EE(canlib_uint8_t CopyData[])
{
p6EE
->
Msg
[
i
]
=
0xFFu
;
}
}
p6EE
->
Sig
.
Vsppe_H3_TX
=
(
Vspeed_tx
>>
8
)
&
0x7u
;
p6EE
->
Sig
.
Vsppe_L8_TX
=
Vspeed_tx
&
0xFF
;
p6EE
->
Sig
.
Uint_TX
=
Get_Dis_KM_Unit
()
;
p6EE
->
Sig
.
Coolant_Seg_TX
=
GET_DataCoolantTempSegDisp
()
;
if
(
GET_DataCollantTempWarnflg
()
==
2
)
{
p6EE
->
Sig
.
Coolant_Warn_TX
=
1
;
}
else
{
p6EE
->
Sig
.
Coolant_Warn_TX
=
0
;
}
}
void
Can_Set_Buff_6EF
(
canlib_uint8_t
CopyData
[])
{
CANMsg6EFUnion
*
p6EF
;
uint8_t
i
=
0
;
uint16_t
Espeed_tx
=
0
;
Espeed_tx
=
Get_ActualEngineSpeed
()
/
100
;
p6EF
=
(
CANMsg6EFUnion
*
)
CopyData
;
if
(
p6EF
!=
(
void
*
)
0
)
{
...
...
@@ -44,6 +61,8 @@ void Can_Set_Buff_6EF(canlib_uint8_t CopyData[])
p6EF
->
Msg
[
i
]
=
0xFFu
;
}
}
p6EF
->
Sig
.
Espeed_TX
=
Espeed_tx
;
p6EF
->
Sig
.
Coolant_TX
=
GET_DataCoolantTempValueDisp
()
+
40
;
}
void
Can_Set_Buff_450
(
canlib_uint8_t
CopyData
[])
{
...
...
Firmware/Source/Application/Data_Coolant/Data_Coolant.c
View file @
fd991c60
...
...
@@ -106,7 +106,7 @@ void Data_Coolant_Temp_Display ( void )
{
if
(
SYS_OPR_STAT_IGN_ON
)
{
if
(
Common_Get_SelfCheckTime_Finish
()
==
0
)
if
(
Common_GetIgnOnTime
()
>=
300
0
)
{
DataCoolantTemp_Dis
.
u8_Uptimer
=
CoolantSelfCheckFlashtimer
;
DataCoolantTemp_Dis
.
u8_Downtimer
=
CoolantSelfCheckFlashtimer
;
...
...
Firmware/Source/Application/Data_Coolant/Data_Coolant.h
View file @
fd991c60
#ifndef _DATA_Coolant_H_
#define _DATA_Coolant_H_
#include "common.h"
#define CoolantFlashtimer 250
...
...
Firmware/Source/Application/Data_TPMS/Data_TPMS.c
0 → 100644
View file @
fd991c60
#include "Application.h"
#include "Data_TPMS\Data_TPMS.h"
\ No newline at end of file
Firmware/Source/Application/Data_TPMS/Data_TPMS.h
0 → 100644
View file @
fd991c60
#ifndef _DATA_TPMS_H_
#define _DATA_TPMS_H_
#include "common.h"
#endif
Firmware/Source/Application/Data_VSpeed/Data_VSpeed.c
View file @
fd991c60
...
...
@@ -340,7 +340,7 @@ uint16_t Get_DispVechileSpeed(void)
return
Vspeed
;
}
/*外发显示车速,精度10倍,取整,舍去小数点*/
uint16_t
Get_DispVechileSpeed
(
void
)
uint16_t
Get_DispVechileSpeed
_TX
(
void
)
{
uint16_t
Vspeed
=
0
;
if
(
DataVSpeedDisp
>=
1990
)
...
...
Firmware/Source/Application/Data_VSpeed/Data_VSpeed.h
View file @
fd991c60
...
...
@@ -69,5 +69,6 @@ uint16_t Get_ActualVechileSpeed(void);
/*显示车速,精度10倍,取整,舍去小数点*/
uint16_t
Get_DispVechileSpeed
(
void
);
uint16_t
Get_DispVechileSpeed_Mile
(
void
);
uint16_t
Get_DispVechileSpeed_TX
(
void
);
#endif
Firmware/Source/Application/Data_Voltage/Data_Voltage.c
0 → 100644
View file @
fd991c60
#include "Application.h"
#include "Data_Voltage\Data_Voltage.h"
\ No newline at end of file
Firmware/Source/Application/Data_Voltage/Data_Voltage.h
0 → 100644
View file @
fd991c60
#ifndef _DATA_VOLTAGE_H_
#define _DATA_VOLTAGE_H_
#include "common.h"
#endif
Firmware/Source/Application/FaultCode/FaultCode.c
0 → 100644
View file @
fd991c60
#include "FaultCode\FaultCode.h"
#include "Application.h"
Firmware/Source/Application/FaultCode/FaultCode.h
0 → 100644
View file @
fd991c60
#ifndef FAULTCODE_H__
#define FAULTCODE_H__
#include "Application.h"
#include "common.h"
#endif
\ No newline at end of file
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
fd991c60
...
...
@@ -4,6 +4,7 @@
#include "Application.h"
#include "RTE.h"
RTC_Information_st_t
g_stRTCInformation
;
static
void
Power_KL30_Init
(
void
);
...
...
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