Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
a5de7526
Commit
a5de7526
authored
Sep 03, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://tyw-server.synology.me:12345/shihao/haojin750tft
into jinshuo
parents
867b358b
80ad8fd8
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
533 additions
and
234 deletions
+533
-234
HaoJin750TFT.uvprojx
.../Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
+11
-6
HaoJin750TFT.sct
...ject/Cmsemicon/BAT32A279/MDK_ARM/Objects/HaoJin750TFT.sct
+2
-2
userdefine.h
...BAT32A279/MDK_ARM/RTE/Device/BAT32A279KM64FB/userdefine.h
+1
-1
Data_ESpeed.c
Firmware/Source/Application/Data_ESpeed.c
+20
-20
Data_VSpeed.c
Firmware/Source/Application/Data_VSpeed.c
+18
-8
FaultCode.c
Firmware/Source/Application/FaultCode.c
+19
-0
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+460
-195
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+2
-2
No files found.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
View file @
a5de7526
...
@@ -275,7 +275,7 @@
...
@@ -275,7 +275,7 @@
</OCR_RVCT3>
</OCR_RVCT3>
<OCR_RVCT4>
<OCR_RVCT4>
<Type>
1
</Type>
<Type>
1
</Type>
<StartAddress>
0x
c40
0
</StartAddress>
<StartAddress>
0x0
</StartAddress>
<Size>
0x73c00
</Size>
<Size>
0x73c00
</Size>
</OCR_RVCT4>
</OCR_RVCT4>
<OCR_RVCT5>
<OCR_RVCT5>
...
@@ -978,11 +978,6 @@
...
@@ -978,11 +978,6 @@
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\PicBin.h
</FilePath>
<FilePath>
..\..\..\..\Source\Component\AMT630H\PicBin.h
</FilePath>
</File>
</File>
<File>
<FileName>
kei_S1.0.6_20240827.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\kei_S1.0.6_20240827.lib
</FilePath>
</File>
<File>
<File>
<FileName>
UartProtocol.h
</FileName>
<FileName>
UartProtocol.h
</FileName>
<FileType>
5
</FileType>
<FileType>
5
</FileType>
...
@@ -1018,6 +1013,16 @@
...
@@ -1018,6 +1013,16 @@
<FileType>
5
</FileType>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\System_Monitor\System_Monitor_User.h
</FilePath>
<FilePath>
..\..\..\..\Source\Component\System_Monitor\System_Monitor_User.h
</FilePath>
</File>
</File>
<File>
<FileName>
System_Monitor.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\System_Monitor\System_Monitor.lib
</FilePath>
</File>
<File>
<FileName>
kei_S1.0.6_20240827.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\kei_S1.0.6_20240827.lib
</FilePath>
</File>
</Files>
</Files>
</Group>
</Group>
<Group>
<Group>
...
...
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/Objects/HaoJin750TFT.sct
View file @
a5de7526
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
; *** Scatter-Loading Description File generated by uVision ***
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
; *************************************************************
LR_IROM1 0x0000
C4
00 0x00073C00 { ; load region size_region
LR_IROM1 0x0000
00
00 0x00073C00 { ; load region size_region
ER_IROM1 0x0000
C4
00 0x00073C00 { ; load address = execution address
ER_IROM1 0x0000
00
00 0x00073C00 { ; load address = execution address
*.o (RESET, +First)
*.o (RESET, +First)
*(InRoot$$Sections)
*(InRoot$$Sections)
.ANY (+RO)
.ANY (+RO)
...
...
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/RTE/Device/BAT32A279KM64FB/userdefine.h
View file @
a5de7526
...
@@ -20,7 +20,7 @@ User definitions
...
@@ -20,7 +20,7 @@ User definitions
typedef
unsigned
short
MD_STATUS
;
typedef
unsigned
short
MD_STATUS
;
#define HAS_BOOTLOADER (
1
u) // 仅仿真App时设置为0
#define HAS_BOOTLOADER (
0
u) // 仅仿真App时设置为0
#define APP_BASE (0x0000C400ul)
#define APP_BASE (0x0000C400ul)
/* Status list definition */
/* Status list definition */
...
...
Firmware/Source/Application/Data_ESpeed.c
View file @
a5de7526
...
@@ -289,26 +289,26 @@ void Data_Engine_Speed_Processing_Service ( void )
...
@@ -289,26 +289,26 @@ void Data_Engine_Speed_Processing_Service ( void )
}
}
}
}
DataESpeedDisp
=
DataESPeedDamping
.
Speed
;
DataESpeedDisp
=
DataESPeedDamping
.
Speed
;
//
//
第4步 增加回差
//第4步 增加回差
//
if (DataESpeedDisp <= 80)
if
(
DataESpeedDisp
<=
80
)
//
{
{
//
DataESpeedDisp = DataESPeedDamping.Speed;
DataESpeedDisp
=
DataESPeedDamping
.
Speed
;
//
}
}
//
else
else
//
{
{
//
if ( DataESpeedDisp < DataESPeedDamping.Speed )
if
(
DataESpeedDisp
<
DataESPeedDamping
.
Speed
)
//
{
{
//
DataESpeedDisp = DataESPeedDamping.Speed;
DataESpeedDisp
=
DataESPeedDamping
.
Speed
;
//
}
}
//
else
else
//
{
{
//
Delta = DataESpeedDisp - DataESPeedDamping.Speed;
Delta
=
DataESpeedDisp
-
DataESPeedDamping
.
Speed
;
//
if ( Delta >= DATA_ESPEED_HYSTERESIS )
if
(
Delta
>=
DATA_ESPEED_HYSTERESIS
)
//
{
{
//
DataESpeedDisp = DataESPeedDamping.Speed;
DataESpeedDisp
=
DataESPeedDamping
.
Speed
;
//
}
}
//
}
}
//
}
}
}
}
uint8_t
Get_EngineValid
(
void
)
uint8_t
Get_EngineValid
(
void
)
...
...
Firmware/Source/Application/Data_VSpeed.c
View file @
a5de7526
...
@@ -321,12 +321,22 @@ void Data_Vehicle_Speed_Processing_Service(void)
...
@@ -321,12 +321,22 @@ void Data_Vehicle_Speed_Processing_Service(void)
}
}
// 第3步:生成显示车速
// 第3步:生成显示车速
DataVSpeedHysteresis
=
DataVSPeedDamping
.
Speed
;
if
((
DataVSPeedDamping
.
Speed
>=
DataVSpeedHysteresis
)
||
(
DataVSPeedDamping
.
Speed
<
DATA_VSPEED_HYSTERESIS
))
{
DataVSpeedHysteresis
=
DataVSPeedDamping
.
Speed
;
}
else
{
if
(
DataVSpeedHysteresis
-
DataVSPeedDamping
.
Speed
>=
DATA_VSPEED_HYSTERESIS
)
{
DataVSpeedHysteresis
=
DataVSPeedDamping
.
Speed
;
}
}
VSpeedCal
=
(
uint32_t
)
DataVSpeedHysteresis
;
VSpeedCal
=
(
uint32_t
)
DataVSpeedHysteresis
;
if
(
DataVSpeedValid
)
//
if ( DataVSpeedValid )
{
//
{
VSpeedCal
*=
105
;
VSpeedCal
*=
105
;
VSpeedCal
/=
100
;
VSpeedCal
/=
100
;
// if((VSpeedCal % 10) >= 5)
// if((VSpeedCal % 10) >= 5)
...
@@ -334,11 +344,11 @@ void Data_Vehicle_Speed_Processing_Service(void)
...
@@ -334,11 +344,11 @@ void Data_Vehicle_Speed_Processing_Service(void)
// VSpeedCal += 5; /* 四舍五入 */
// VSpeedCal += 5; /* 四舍五入 */
// }
// }
DataVSpeedDisp
=
(
uint16_t
)
VSpeedCal
;
DataVSpeedDisp
=
(
uint16_t
)
VSpeedCal
;
}
//
}
else
//
else
{
//
{
DataVSpeedDisp
=
0
;
//
DataVSpeedDisp = 0;
}
//
}
}
}
/*车速有效位:有效=1,无效=0*/
/*车速有效位:有效=1,无效=0*/
...
...
Firmware/Source/Application/FaultCode.c
View file @
a5de7526
#include "FaultCode.h"
#include "FaultCode.h"
#include "CAN_CH0_CAN_Communication_Matrix.h"
static
_st_Init
FaultCodeInit
;
static
_st_Init
FaultCodeInit
;
static
uint16_t
u16FaultCodeDtcCount
=
0
;
static
uint16_t
u16FaultCodeDtcCount
=
0
;
static
uint16_t
u16FaultCodeDtcCountBack
=
0
;
static
uint16_t
u16FaultCodeDtcCountBack
=
0
;
...
@@ -395,3 +396,21 @@ uint8_t Get_FaultCode_Valid(void)
...
@@ -395,3 +396,21 @@ uint8_t Get_FaultCode_Valid(void)
{
{
return
u8FaultCodeValid
;
return
u8FaultCodeValid
;
}
}
/*
*NAME : Get_FaultCode_Lost()
*FUNCTION : 获取发送故障码的CAN是否掉线
*RETURN : 0-LOST 1-ONLINE
*/
uint8_t
Get_FaultCode_Lost
(
void
)
{
uint8_t
u8FaultCodeLost
=
0
;
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_402_Msg_Count
)
==
CAN_SIG_LOST
)
{
u8FaultCodeLost
=
0
;
}
else
{
u8FaultCodeLost
=
1
;
}
return
u8FaultCodeLost
;
}
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
a5de7526
This diff is collapsed.
Click to expand it.
Firmware/Source/Component/Key/Key_user.c
View file @
a5de7526
...
@@ -147,7 +147,7 @@ void Key_KL30_Init_EXample(void)
...
@@ -147,7 +147,7 @@ void Key_KL30_Init_EXample(void)
Key_Parameter_Set_Short_Press_1_Time
(
50U
,
2000U
);
Key_Parameter_Set_Short_Press_1_Time
(
50U
,
2000U
);
Key_Parameter_Set_Short_Press_2_Time
(
3000U
,
6000U
);
Key_Parameter_Set_Short_Press_2_Time
(
3000U
,
6000U
);
Key_Parameter_Set_Long_Press_1_Time
(
7
000U
);
Key_Parameter_Set_Long_Press_1_Time
(
2
000U
);
Key_Parameter_Set_Long_Press_2_Time
(
8000U
);
Key_Parameter_Set_Long_Press_2_Time
(
8000U
);
Key_Parameter_Set_Long_Press_3_Time
(
9000U
);
Key_Parameter_Set_Long_Press_3_Time
(
9000U
);
Key_Parameter_Set_Long_Press_4_Time
(
10000U
);
Key_Parameter_Set_Long_Press_4_Time
(
10000U
);
...
@@ -163,7 +163,7 @@ void Key_Wakeup_Init_EXample(void)
...
@@ -163,7 +163,7 @@ void Key_Wakeup_Init_EXample(void)
Key_Parameter_Set_Short_Press_1_Time
(
50U
,
2000U
);
Key_Parameter_Set_Short_Press_1_Time
(
50U
,
2000U
);
Key_Parameter_Set_Short_Press_2_Time
(
3000U
,
6000U
);
Key_Parameter_Set_Short_Press_2_Time
(
3000U
,
6000U
);
Key_Parameter_Set_Long_Press_1_Time
(
7
000U
);
Key_Parameter_Set_Long_Press_1_Time
(
2
000U
);
Key_Parameter_Set_Long_Press_2_Time
(
8000U
);
Key_Parameter_Set_Long_Press_2_Time
(
8000U
);
Key_Parameter_Set_Long_Press_3_Time
(
9000U
);
Key_Parameter_Set_Long_Press_3_Time
(
9000U
);
Key_Parameter_Set_Long_Press_4_Time
(
10000U
);
Key_Parameter_Set_Long_Press_4_Time
(
10000U
);
...
...
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