Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
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
ISUZU
VC66_7C
Commits
7b131bd3
Commit
7b131bd3
authored
Nov 29, 2021
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整报警调度
parent
41651a28
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23896 additions
and
23870 deletions
+23896
-23870
project
ghs/project
+0
-0
project.hex
ghs/project.hex
+22313
-22311
project.siz
ghs/project.siz
+1
-1
Data_EngineSpeed.c
source/Application/APP/Data_EngineSpeed/Data_EngineSpeed.c
+5
-1
Popup_Scheduler.c
source/Application/Alarm/Popup_Scheduler.c
+1492
-1475
Popup_Scheduler.h
source/Application/Alarm/Popup_Scheduler.h
+70
-69
CAN_Communication_Matrix.c
...Application/CAN_APP_NM/CAN_App/CAN_Communication_Matrix.c
+13
-13
DisplaySch_user.c
source/Application/Graphic/UE/DisplaySch_user.c
+2
-0
No files found.
ghs/project
View file @
7b131bd3
No preview for this file type
ghs/project.hex
View file @
7b131bd3
This diff is collapsed.
Click to expand it.
ghs/project.siz
View file @
7b131bd3
project .intvect 1536
project .text 3201
08
project .text 3201
72
project .rodata 411103
project .secinfo 120
project .syscall 6
...
...
source/Application/APP/Data_EngineSpeed/Data_EngineSpeed.c
View file @
7b131bd3
...
...
@@ -86,7 +86,11 @@ void Tacho_Processing_Service(void)
u32Result
+=
500u
;
u32Result
/=
1000u
;
if
(
u32Result
>
3000u
)
if
(
u32Result
<
330u
)
{
u32Result
=
0u
;
}
else
if
(
u32Result
>
3000u
)
{
u32Result
=
3000u
;
}
...
...
source/Application/Alarm/Popup_Scheduler.c
View file @
7b131bd3
...
...
@@ -209,10 +209,21 @@ void Popup_Scheduling_Service ( void )
break
;
case
POPUP_CUT_NOT
:
//第四组报警0.8秒交互
if
(
PopupAttributeTable
[
s_PopupScheduling
.
CurPopupID
].
Priority
==
2
)
{
if
(
s_PopupScheduling
.
Timer
<
POPUP_DISP_TIME_NORMAL_FLAG
)
{
IsReturn
=
1u
;
}
}
else
{
if
(
s_PopupScheduling
.
Timer
<
POPUP_DISP_TIME_NORMAL
)
{
IsReturn
=
1u
;
}
}
break
;
default:
...
...
@@ -782,6 +793,7 @@ static void Popup_Update_Status ( uint16_t PopupID )
*@Return: none.
*@Note: none.
**********************************************************************************************************/
uint8_t
hyq_1
,
hyq_2
;
static
struct
PopupList
*
Popup_Polling_Next
(
struct
PopupList
*
CurPopup
)
{
struct
PopupList
*
NextPopup
=
POPUPLIB_NULL
;
...
...
@@ -802,12 +814,46 @@ static struct PopupList *Popup_Polling_Next ( struct PopupList *CurPopup )
#endif
while
(
NextPopup
!=
POPUPLIB_NULL
)
{
/*原始部分*/
/*
if ( ( NextPopup->Status == POPUP_STATUS_LOOP ) || ( NextPopup->Status == POPUP_STATUS_FIRST ) )
{
break;
}
NextPopup = NextPopup->next;
*/
/*----test----*/
if
(
PopupAttributeTable
[
NextPopup
->
PopupID
].
Type
!=
POPUP_TYPE_WARNING
)
{
if
((
NextPopup
->
Status
==
POPUP_STATUS_LOOP
)
||
(
NextPopup
->
Status
==
POPUP_STATUS_FIRST
))
{
break
;
}
}
else
{
if
(
NextPopup
->
Status
==
POPUP_STATUS_FIRST
)
break
;
else
if
(
NextPopup
->
Status
==
POPUP_STATUS_LOOP
)
{
/*----test----*/
hyq_1
=
CurPopup
->
PopupID
;
hyq_2
=
NextPopup
->
PopupID
;
/*----test----*/
if
(
PopupAttributeTable
[
NextPopup
->
PopupID
].
Priority
==
PopupAttributeTable
[
CurPopup
->
PopupID
].
Priority
)
break
;
else
{
NextPopup
=
WarningListHead
;
return
NextPopup
;
}
}
}
NextPopup
=
NextPopup
->
next
;
/*----test----*/
}
}
...
...
@@ -816,9 +862,6 @@ static struct PopupList *Popup_Polling_Next ( struct PopupList *CurPopup )
if
(
FatalListHead
!=
POPUPLIB_NULL
)
{
NextPopup
=
FatalListHead
;
while
(
NextPopup
!=
POPUPLIB_NULL
)
{
if
(
(
NextPopup
->
Status
==
POPUP_STATUS_FIRST
)
||
(
NextPopup
->
Status
==
POPUP_STATUS_LOOP
)
)
...
...
@@ -895,22 +938,8 @@ static void Popup_Fatal_Request ( uint16_t PopupID )
{
struct
PopupList
*
p1
=
POPUPLIB_NULL
;
p1
=
PopupList_Select
(
FatalListHead
,
&
PopupID
);
#if 1 //VC66 组1 组内插入 上位优先.
struct
PopupList
*
pwby
=
FatalListHead
;
while
(
pwby
!=
POPUPLIB_NULL
)
{
if
(
pwby
->
PopupID
<
PopupID
)
{
Popup_Delete
(
PopupID
);
return
;
}
pwby
=
pwby
->
next
;
}
#endif
if
(
p1
==
POPUPLIB_NULL
)
if
(
p1
==
POPUPLIB_NULL
)
{
p1
=
HintListHead
;
while
(
p1
!=
POPUPLIB_NULL
)
...
...
@@ -929,7 +958,6 @@ static void Popup_Fatal_Request ( uint16_t PopupID )
p1
->
Status
=
POPUP_STATUS_FIRST
;
p1
->
next
=
POPUPLIB_NULL
;
FatalListHead
=
PopupList_Insert
(
FatalListHead
,
p1
);
Popup_Cal_CutGrade
(
PopupID
);
}
}
...
...
@@ -964,8 +992,8 @@ static void Popup_Hint_Request ( uint16_t PopupID )
if
(
p1
!=
POPUPLIB_NULL
)
{
p1
->
PopupID
=
PopupID
;
if
(
FatalListHead
==
POPUPLIB_NULL
)
{
//if ( FatalListHead == POPUPLIB_NULL )
//{
p1
->
Status
=
POPUP_STATUS_FIRST
;
s_PopupScheduling
.
NewPopupID
=
PopupID
;
#if POPUP_HINT_CUT_HINT_IMMEDIATELY
...
...
@@ -975,11 +1003,11 @@ static void Popup_Hint_Request ( uint16_t PopupID )
#endif
s_PopupScheduling
.
PollPopupID
=
s_PopupScheduling
.
CurPopupID
;
}
else
{
p1
->
Status
=
POPUP_STATUS_OFF
;
}
//}
//else
//{
// p1->Status = POPUP_STATUS_OFF;
//}
p1
->
next
=
POPUPLIB_NULL
;
HintListHead
=
PopupList_Insert
(
HintListHead
,
p1
);
}
...
...
@@ -1221,12 +1249,9 @@ static void Popup_Cal_CutGrade_loc ( uint16_t NewPopupID )
#endif
}
else
{
if
(
PopupAttributeTable
[
NewPopupID
].
Type
!=
POPUP_TYPE_FATAL
)
{
//wangboyu -add -begin -2021年8月20日09:27:10
//针对VC66 组1 - 上位优先
{
s_PopupScheduling
.
CutGrade
=
POPUP_CUT_WAIT_TIME_NORMAL
;
}
}
break
;
#if POPUP_HIGH_CUT_LOW_TYPE_IMMEDIATELY
...
...
@@ -1269,10 +1294,6 @@ static uint8_t Popup_Compare_Priority ( uint16_t PopupID1, uint16_t PopupID2 )
{
uint8_t
ret
=
0u
;
/*比较类型*/
if
(
PopupAttributeTable
[
PopupID1
].
Type
<
PopupAttributeTable
[
PopupID2
].
Type
)
{
...
...
@@ -1280,10 +1301,6 @@ static uint8_t Popup_Compare_Priority ( uint16_t PopupID1, uint16_t PopupID2 )
}
else
if
(
PopupAttributeTable
[
PopupID1
].
Type
==
PopupAttributeTable
[
PopupID2
].
Type
)
{
/*类型相同,比较主优先级*/
if
(
PopupAttributeTable
[
PopupID1
].
Priority
<
PopupAttributeTable
[
PopupID2
].
Priority
)
{
...
...
source/Application/Alarm/Popup_Scheduler.h
View file @
7b131bd3
This diff is collapsed.
Click to expand it.
source/Application/CAN_APP_NM/CAN_App/CAN_Communication_Matrix.c
View file @
7b131bd3
source/Application/Graphic/UE/DisplaySch_user.c
View file @
7b131bd3
...
...
@@ -205,6 +205,7 @@ void GUI_DisplayServices(void)
if
(
BG_display_flag
==
0
)
{
BG_display_flag
=
1
;
MenuInit
();
}
else
...
...
@@ -225,6 +226,7 @@ void GUI_DisplayServices(void)
JCUA_Enable_window
();
}
}
MenuManage
();
//BG_display_flag = 0;
}
...
...
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