Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
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
陈家乐
jiancetai
Commits
584303e0
Commit
584303e0
authored
Mar 16, 2026
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:电春风车速老化程序
parent
76514bb8
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
201 additions
and
262 deletions
+201
-262
API_RTC.c
Test_Bench/Api_Sources/API_RTC.c
+20
-20
APP_CAN.c
Test_Bench/Api_Sources/APP_CAN.c
+5
-0
APP_Test.c
Test_Bench/Api_Sources/APP_Test.c
+163
-236
APP_Test.h
Test_Bench/App_Headers/APP_Test.h
+11
-6
Globals_Var.h
Test_Bench/App_Headers/Globals_Var.h
+2
-0
No files found.
Test_Bench/Api_Sources/API_RTC.c
View file @
584303e0
...
...
@@ -15,7 +15,7 @@ INT16U RT_10ms = 0,
/*-------------------------------------------------------------------------
* Function Name : Api_SetTimer1
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -29,7 +29,7 @@ void Api_SetTimer0(INT16U Second,ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : API_TimerOver
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -50,7 +50,7 @@ INT8U Api_TimerOver0(ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_SetTimer1
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -64,7 +64,7 @@ void Api_SetTimer1(INT16U Second,ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : API_TimerOver
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -85,7 +85,7 @@ INT8U Api_TimerOver1(ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_SetTimer1
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -99,7 +99,7 @@ void Api_SetTimer2(INT16U Second,ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : API_TimerOver
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -120,7 +120,7 @@ INT8U Api_TimerOver2(ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_SetTimer3
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -134,7 +134,7 @@ void Api_SetTimer3(INT16U Second,ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_TimerOver3
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -155,7 +155,7 @@ INT8U Api_TimerOver3(ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_SetTimer4
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -169,7 +169,7 @@ void Api_SetTimer4(INT16U Second,ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_TimerOver4
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -190,7 +190,7 @@ INT8U Api_TimerOver4(ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_SetTimer5
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -204,7 +204,7 @@ void Api_SetTimer5(INT16U Second,ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_TimerOver5
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -225,7 +225,7 @@ INT8U Api_TimerOver5(ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_SetTimer6
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -239,7 +239,7 @@ void Api_SetTimer6(INT16U Second,ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_TimerOver5
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -260,7 +260,7 @@ INT8U Api_TimerOver6(ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_SetTimer7
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -274,7 +274,7 @@ void Api_SetTimer7(INT16U Second,ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_TimerOver7
* Description :
设置定时器
* Description :
���ö�ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -296,7 +296,7 @@ INT8U Api_TimerOver7(ClockType *T)
/*-------------------------------------------------------------------------
* Function Name : Api_SetAutoTimer
* Description :
设置自动切换定时器
* Description :
�����Զ��л���ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -310,7 +310,7 @@ void Api_SetAutoTimer(INT16U Second,ClockType *T)
}
/*-------------------------------------------------------------------------
* Function Name : Api_AutoTimerOver
* Description :
设置自动切换定时器
* Description :
�����Զ��л���ʱ��
* Input :
* Output : None
* Return : None
...
...
@@ -403,7 +403,7 @@ INT16U time_3s = 0;
{
if
(
Key_Dodging_flag
)
{
if
(
Key
.
CAN_Step
<
10
)
if
(
Key
.
CAN_Step
<
5
)
{
Key
.
CAN_Step
++
;
}
...
...
@@ -519,7 +519,7 @@ INT16U time_3s = 0;
if
(
time_3s
>
2
)
{
time_3s
=
0
;
if
(
Key
.
CAN_Step
>
10
)
if
(
Key
.
CAN_Step
>
5
)
{
Key
.
CAN_Step
=
1
;
}
...
...
Test_Bench/Api_Sources/APP_CAN.c
View file @
584303e0
...
...
@@ -96,6 +96,7 @@ void Format_CAN_Msg()
{
CanMsg_521
.
ID
=
0x521
;
CanMsg_522
.
ID
=
0x522
;
CanMsg_260
.
ID
=
0x260
;
//车速
// CanMsg_101.ID = 0x101;
// CanMsg_067.ID = 0x67;
// CanMsg_600.ID = 0x600;
...
...
@@ -123,6 +124,7 @@ void Format_CAN_Msg()
CanMsg_521
.
Length
=
8
;
CanMsg_522
.
Length
=
8
;
CanMsg_260
.
Length
=
8
;
// CanMsg_101.Length = 8;
// CanMsg_067.Length = 8;
// CanMsg_600.Length = 8;
...
...
@@ -151,6 +153,7 @@ void Format_CAN_Msg()
CanMsg_521
.
ID_EN
=
1
;
CanMsg_522
.
ID_EN
=
1
;
CanMsg_260
.
ID_EN
=
1
;
// CanMsg_101.ID_EN = 1;
// CanMsg_067.ID_EN = 1;
// CanMsg_600.ID_EN = 1;
...
...
@@ -272,6 +275,8 @@ void App_Can_Proc(void)
// Clear_CAN_Msg((CAN_message *)&CanMsg_021);
bReturn
=
Api_CANSendFrame
((
CAN_message
*
)
&
CanMsg_521
);
Clear_CAN_Msg
((
CAN_message
*
)
&
CanMsg_521
);
bReturn
=
Api_CANSendFrame
((
CAN_message
*
)
&
CanMsg_260
);
Clear_CAN_Msg
((
CAN_message
*
)
&
CanMsg_260
);
}
if
(
GetCtrlTime
(
CANMsgSend_200ms
)
>=
200
){
...
...
Test_Bench/Api_Sources/APP_Test.c
View file @
584303e0
This diff is collapsed.
Click to expand it.
Test_Bench/App_Headers/APP_Test.h
View file @
584303e0
...
...
@@ -84,21 +84,23 @@ enum
// Electricity_L,
// Electricity_h,
// Electricity_l,
// Sidebrace, //
侧撑
// cruise, //巡
航
// Sidebrace, //
���
// cruise, //Ѳ
��
// ABS,
// TCS,
// Tire_pressure,
// Bluetooth,
// GPS,
// Callalert, //
来电提醒
// GMS, //
来电提醒
// Parallelsignals, //
并联信号
// Enginefailure, //
发动机故障
// Callalert, //
��������
// GMS, //
��������
// Parallelsignals, //
�����ź�
// Enginefailure, //
����������
// P_dang,
Engine_water_temperature_display
=
0
,
EVpeed_H
,
EVpeed_L
,
Vspeed_L
,
Vspeed_H
,
CAN_List_Num
,
};
...
...
@@ -174,6 +176,9 @@ static const s_CAN_List CAN_List[] =
{
&
CanMsg_522
,
4
,
0
,
8
,
0
,
Offset_Plus
,
1
,
1
,
&
CurValueStr
[
EVpeed_L
],
Motorola
},
{
&
CanMsg_522
,
5
,
0
,
8
,
0
,
Offset_Plus
,
1
,
1
,
&
CurValueStr
[
EVpeed_H
],
Motorola
},
{
&
CanMsg_260
,
0
,
0
,
8
,
0
,
Offset_Plus
,
1
,
1
,
&
CurValueStr
[
Vspeed_L
],
Motorola
},
{
&
CanMsg_260
,
1
,
0
,
8
,
0
,
Offset_Plus
,
1
,
1
,
&
CurValueStr
[
Vspeed_H
],
Motorola
},
};
extern
unsigned
int
Key_Dodging_flag
;
extern
unsigned
int
lost_flag
;
...
...
Test_Bench/App_Headers/Globals_Var.h
View file @
584303e0
...
...
@@ -110,6 +110,7 @@
/*CS08 test*/
EXTERN_VAR
CAN_message
CanMsg_521
;
EXTERN_VAR
CAN_message
CanMsg_522
;
EXTERN_VAR
CAN_message
CanMsg_260
;
// EXTERN_VAR CAN_message CanMsg_101;
// EXTERN_VAR CAN_message CanMsg_067;
// EXTERN_VAR CAN_message CanMsg_600;
...
...
@@ -137,6 +138,7 @@
extern
CAN_message
CanMsg_521
;
extern
CAN_message
CanMsg_522
;
extern
CAN_message
CanMsg_260
;
// extern CAN_message CanMsg_101;
// extern CAN_message CanMsg_067;
// extern CAN_message CanMsg_600;
...
...
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