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
21f94345
Commit
21f94345
authored
Feb 01, 2023
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用的按键操作函数
parent
e1fcdaf6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
157 deletions
+0
-157
Key_user.c
source/Application/APP/Key/Key_user.c
+0
-12
DisplaySch_user.c
source/Application/Graphic/UE/DisplaySch_user.c
+0
-131
DisplaySch_user.h
source/Application/Graphic/UE/DisplaySch_user.h
+0
-14
No files found.
source/Application/APP/Key/Key_user.c
View file @
21f94345
...
...
@@ -40,8 +40,6 @@ void Key_Operation_Up(Key_Event_en_t enKeyEvent)
uint16_t
DispVSpeed
=
0u
;
UElib_uint16_t
HMI_MENU_Sta
=
0u
;
HMI_Set_KEY_UP
(
enKeyEvent
);
HMI_MENU_Sta
=
Get_Cur_HMI
();
DispVSpeed
=
Common_Get_Disp_V_Speed
();
...
...
@@ -534,8 +532,6 @@ void Key_Operation_Down(Key_Event_en_t enKeyEvent)
uint16_t
DispVSpeed
=
0u
;
UElib_uint16_t
HMI_MENU_Sta
=
0u
;
HMI_Set_KEY_DOWN
(
enKeyEvent
);
HMI_MENU_Sta
=
Get_Cur_HMI
();
DispVSpeed
=
Common_Get_Disp_V_Speed
();
...
...
@@ -1047,8 +1043,6 @@ void Key_Operation_Enter(Key_Event_en_t enKeyEvent)
uint16_t
DispVSpeed
=
0u
;
UElib_uint16_t
HMI_MENU_Sta
=
0u
;
HMI_Set_KEY_CONFIRM
(
enKeyEvent
);
HMI_MENU_Sta
=
Get_Cur_HMI
();
DispVSpeed
=
Common_Get_Disp_V_Speed
();
...
...
@@ -1226,8 +1220,6 @@ void Key_Operation_Return(Key_Event_en_t enKeyEvent)
uint16_t
DispVSpeed
=
0u
;
UElib_uint16_t
HMI_MENU_Sta
=
0u
;
HMI_Set_KEY_CANCEL
(
enKeyEvent
);
HMI_MENU_Sta
=
Get_Cur_HMI
();
DispVSpeed
=
Common_Get_Disp_V_Speed
();
...
...
@@ -1363,8 +1355,6 @@ void Key_Operation_Menu(Key_Event_en_t enKeyEvent)
uint16_t
DispVSpeed
=
0u
;
UElib_uint16_t
HMI_MENU_Sta
=
0u
;
HMI_Set_KEY_MENU
(
enKeyEvent
);
HMI_MENU_Sta
=
Get_Cur_HMI
();
DispVSpeed
=
Common_Get_Disp_V_Speed
();
...
...
@@ -1540,8 +1530,6 @@ void Key_Operation_ODOTrip(Key_Event_en_t enKeyEvent)
UElib_uint16_t
HMI_MENU_Sta
=
0u
;
uint8_t
PowerStatus
;
HMI_Set_KEY_ODOTRIP
(
enKeyEvent
);
HMI_MENU_Sta
=
Get_Cur_HMI
();
DispVSpeed
=
Common_Get_Disp_V_Speed
();
PowerStatus
=
Common_Get_IG_Sts
();
...
...
source/Application/Graphic/UE/DisplaySch_user.c
View file @
21f94345
...
...
@@ -150,87 +150,6 @@ void DisplayServices(void)
}
DispSch_xxxMs_Logic
(
10u
);
#if 0
/*上短*/
if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_UP == KEY_EVENT_SHORT_PRESS_1)
{
HMI_Clear_KEY_UP();
}
/*上长*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_UP == KEY_EVENT_LONG_PRESS_1)
{
HMI_Clear_KEY_UP();
}
/*下短*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_DOWN == KEY_EVENT_SHORT_PRESS_1)
{
HMI_Clear_KEY_DOWN();
}
/*下长*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_DOWN == KEY_EVENT_LONG_PRESS_1)
{
HMI_Clear_KEY_DOWN();
}
/*确认短*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_CONFIRM == KEY_EVENT_SHORT_PRESS_1)
{
HMI_Clear_KEY_CONFIRM();
}
/*确认长*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_CONFIRM == KEY_EVENT_LONG_PRESS_1)
{
HMI_Clear_KEY_CONFIRM();
}
/*确认超长 3S*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_CONFIRM == KEY_EVENT_LONG_PRESS_2)
{
HMI_Clear_KEY_CONFIRM();
}
/*返回短*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_CANCEL == KEY_EVENT_SHORT_PRESS_1)
{
HMI_Clear_KEY_CANCEL();
}
/*返回长*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_CANCEL == KEY_EVENT_LONG_PRESS_1)
{
HMI_Clear_KEY_CANCEL();
}
/*MENU短*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_MENU == KEY_EVENT_SHORT_PRESS_1)
{
HMI_Clear_KEY_MENU();
}
/*MENU长*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_MENU == KEY_EVENT_LONG_PRESS_1)
{
HMI_Clear_KEY_MENU();
}
else
{
; /*do nothing*/
}
/*ODOTrip短*/
if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_ODOTRIP == KEY_EVENT_SHORT_PRESS_1)
{
HMI_Clear_KEY_ODOTRIP();
}
/*ODOTrip长*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_ODOTRIP == KEY_EVENT_LONG_PRESS_1)
{
HMI_Clear_KEY_ODOTRIP();
}
/*ODO off-to-on*/
else if (UE_CtrlInfo.HMI_KEYInfo.u8KEY_ODOTRIP == KEY_EVENT_OFF_TO_ON)
{
HMI_Clear_KEY_ODOTRIP();
}
else
{
; /*do nothing*/
}
#endif
}
/*----开机动画----*/
...
...
@@ -436,56 +355,6 @@ void GUI_DisplayServices(void)
}
}
void
HMI_Set_KEY_UP
(
uint8_t
u8KeyVal
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_UP
=
u8KeyVal
;
}
void
HMI_Set_KEY_DOWN
(
uint8_t
u8KeyVal
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_DOWN
=
u8KeyVal
;
}
void
HMI_Set_KEY_CONFIRM
(
uint8_t
u8KeyVal
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_CONFIRM
=
u8KeyVal
;
}
void
HMI_Set_KEY_CANCEL
(
uint8_t
u8KeyVal
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_CANCEL
=
u8KeyVal
;
}
void
HMI_Set_KEY_MENU
(
uint8_t
u8KeyVal
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_MENU
=
u8KeyVal
;
}
void
HMI_Set_KEY_ODOTRIP
(
uint8_t
u8KeyVal
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_ODOTRIP
=
u8KeyVal
;
}
void
HMI_Clear_KEY_UP
(
void
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_UP
=
0u
;
}
void
HMI_Clear_KEY_DOWN
(
void
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_DOWN
=
0u
;
}
void
HMI_Clear_KEY_CONFIRM
(
void
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_CONFIRM
=
0u
;
}
void
HMI_Clear_KEY_CANCEL
(
void
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_CANCEL
=
0u
;
}
void
HMI_Clear_KEY_MENU
(
void
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_MENU
=
0u
;
}
void
HMI_Clear_KEY_ODOTRIP
(
void
)
{
UE_CtrlInfo
.
HMI_KEYInfo
.
u8KEY_ODOTRIP
=
0u
;
}
void
Meter_Mode_conversion
(
void
)
{
uint16_t
popupID
=
0xFFFFu
;
...
...
source/Application/Graphic/UE/DisplaySch_user.h
View file @
21f94345
...
...
@@ -77,21 +77,7 @@ void Display_NothingService(void);
void
GUI_DisplayServices
(
void
);
void
HMI_Set_KEY_UP
(
uint8_t
u8KeyVal
);
void
HMI_Set_KEY_DOWN
(
uint8_t
u8KeyVal
);
void
HMI_Set_KEY_CONFIRM
(
uint8_t
u8KeyVal
);
void
HMI_Set_KEY_CANCEL
(
uint8_t
u8KeyVal
);
void
HMI_Set_KEY_MENU
(
uint8_t
u8KeyVal
);
void
HMI_Set_KEY_ODOTRIP
(
uint8_t
u8KeyVal
);
void
HMI_Clear_KEY_UP
(
void
);
void
HMI_Clear_KEY_DOWN
(
void
);
void
HMI_Clear_KEY_CONFIRM
(
void
);
void
HMI_Clear_KEY_CANCEL
(
void
);
void
HMI_Clear_KEY_MENU
(
void
);
void
HMI_Clear_KEY_ODOTRIP
(
void
);
void
Meter_Mode_conversion
(
void
);
uint16_t
Common_GetHMI_StartAnimationFrameCnt
(
void
);
#endif
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