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
c68277e7
Commit
c68277e7
authored
Apr 29, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整按键问题
parent
ae104679
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
12 deletions
+51
-12
BackGroundLight.c
source/Application/APP/BackLight/BackGroundLight.c
+3
-2
Gauges.c
source/Application/APP/GaugesMode/Gauges.c
+1
-1
Key.c
source/Application/APP/Key/Key.c
+1
-1
DisplaySch_user.c
source/Application/Graphic/UE/DisplaySch_user.c
+2
-0
CD4051.c
source/Driver/CD4051/CD4051.c
+44
-8
No files found.
source/Application/APP/BackLight/BackGroundLight.c
View file @
c68277e7
...
...
@@ -2,9 +2,10 @@
#include "BackgroundLight.h"
#include "BGLInterface.h"
#include "GPIO.h"
#include "Data_CoolantTemperature.h"
#include "kwp2000_service.h"
#include "Telltales.h"
#include "
Data_CoolantTemperature
.h"
#include "
Menu
.h"
uint16_t
IgnOffKeepMs
;
uint16_t
IgnOnKeepMs
;
...
...
@@ -404,7 +405,7 @@ void BackLightDeal(BL_USER_PARA BL_FunPara, BL_STATE_PARA BLFunStatePara)
SetBacklightDestVal
(
BL_DIAL
,
BL_FunPara
.
BL_User_GaugesDuty
);
/*燃油报警*/
if
((
LED_Fuel_Judgement
()
==
1u
)
&&
(
K_Line_Set
.
K_Line_LID43
==
0x82
u
))
if
((
(
LED_Fuel_Judgement
()
==
1u
)
&&
(
K_Line_Set
.
K_Line_LID43
==
0x82u
))
||
(
MenuFlag
.
Menu_Popup_Flag
==
4
u
))
{
SetBacklightDestVal
(
LED_FUEL
,
0
);
}
...
...
source/Application/APP/GaugesMode/Gauges.c
View file @
c68277e7
...
...
@@ -13,7 +13,7 @@
#include "Gauges.h"
#include "GaugesInterface.h"
#define GAUGES_TOTAL_NUM 9u
#define GAUGES_INIT_TIME_MAX
20
00u
#define GAUGES_INIT_TIME_MAX
35
00u
uint16_t
GaugesCurrentPos
[
GAUGES_TOTAL_NUM
]
;
uint16_t
BackupDestPostion
[
GAUGES_TOTAL_NUM
];
uint16_t
GaugesDisPos
[
GAUGES_TOTAL_NUM
];
...
...
source/Application/APP/Key/Key.c
View file @
c68277e7
...
...
@@ -308,7 +308,7 @@ void Key_Init(void)
/*按键动作时间*/
/*342 4.1 短按/长按操作的判断标准(判定时间):短按;40ms以上,未到800ms,长按;800ms以上*/
stKeyParameter
.
u16KeyLoosenTime
=
100U
;
stKeyParameter
.
u16KeyShortPressTime
=
4
0U
;
stKeyParameter
.
u16KeyShortPressTime
=
8
0U
;
stKeyParameter
.
u16KeyLongPressTime
=
1000U
;
stKeyParameter
.
u16KeySuperLongPressTime
=
10000U
;
stKeyParameter
.
u16KeyValidOFFTime
=
200U
;
/*按键动作时间*/
...
...
source/Application/Graphic/UE/DisplaySch_user.c
View file @
c68277e7
...
...
@@ -241,6 +241,8 @@ void Display_StartAnimationEnter(void)
{
HMI_StartAnimationFrameCnt
=
0u
;
backgroundOFFFlag
=
0
;
MenuFlag
.
Menu_Popup_Flag
=
0u
;
/*硬清空所有缓存数据*/
loc_free_mem
(
MENU_Sprite
,
MENU_Sprite
);
...
...
source/Driver/CD4051/CD4051.c
View file @
c68277e7
...
...
@@ -124,26 +124,62 @@ void CD4051B_Debounce_Service(void)
CD4051CtrStr
[
comcnt
][
chcnt
].
time
++
;
if
(
CD4051B_GeneralCOM_Cache
[
comcnt
][
chcnt
]
==
1u
)
{
if
(
CD4051CtrStr
[
comcnt
][
chcnt
].
time
>=
CD4051B_DEBOUNCE_High_CNT
)
/*特殊*/
if
((
comcnt
==
COM3
)
&&
(
chcnt
==
Channel5
))
{
CD4051CtrStr
[
comcnt
][
chcnt
].
time
=
0u
;
CD4051B_GeneralCOM_Value
[
comcnt
][
chcnt
]
=
1u
;
if
(
CD4051CtrStr
[
comcnt
][
chcnt
].
time
>=
2
)
{
CD4051CtrStr
[
comcnt
][
chcnt
].
time
=
0u
;
CD4051B_GeneralCOM_Value
[
comcnt
][
chcnt
]
=
1u
;
}
else
{
;
}
}
/*一般*/
else
{
;
if
(
CD4051CtrStr
[
comcnt
][
chcnt
].
time
>=
CD4051B_DEBOUNCE_High_CNT
)
{
CD4051CtrStr
[
comcnt
][
chcnt
].
time
=
0u
;
CD4051B_GeneralCOM_Value
[
comcnt
][
chcnt
]
=
1u
;
}
else
{
;
}
}
}
else
{
if
(
CD4051CtrStr
[
comcnt
][
chcnt
].
time
>=
CD4051B_DEBOUNCE_Low_CNT
)
/*特殊*/
if
((
comcnt
==
COM3
)
&&
(
chcnt
==
Channel5
))
{
CD4051CtrStr
[
comcnt
][
chcnt
].
time
=
0u
;
CD4051B_GeneralCOM_Value
[
comcnt
][
chcnt
]
=
0u
;
if
(
CD4051CtrStr
[
comcnt
][
chcnt
].
time
>=
2
)
{
CD4051CtrStr
[
comcnt
][
chcnt
].
time
=
0u
;
CD4051B_GeneralCOM_Value
[
comcnt
][
chcnt
]
=
0u
;
}
else
{
;
}
}
/*一般*/
else
{
;
if
(
CD4051CtrStr
[
comcnt
][
chcnt
].
time
>=
CD4051B_DEBOUNCE_Low_CNT
)
{
CD4051CtrStr
[
comcnt
][
chcnt
].
time
=
0u
;
CD4051B_GeneralCOM_Value
[
comcnt
][
chcnt
]
=
0u
;
}
else
{
;
}
}
}
}
...
...
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