Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LE19
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
时昊
LE19
Commits
11760a7c
Commit
11760a7c
authored
May 04, 2023
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变更
parent
c6a0b88a
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
75 additions
and
9 deletions
+75
-9
Application.DebugWithoutBootloader.cspy.bat
...tion/settings/Application.DebugWithoutBootloader.cspy.bat
+3
-2
Gauge_Display.c
lg02y源码/Source/Application/Display/Gauge_Display.c
+0
-0
Gauge_Display.h
lg02y源码/Source/Application/Display/Gauge_Display.h
+8
-0
SEG_DISPLAY.c
lg02y源码/Source/Application/Display/SEG_DISPLAY.c
+49
-1
SEG_DISPLAY.h
lg02y源码/Source/Application/Display/SEG_DISPLAY.h
+1
-0
Line_In.c
lg02y源码/Source/Application/Ex_Input/Line_In.c
+7
-0
Line_In.h
lg02y源码/Source/Application/Ex_Input/Line_In.h
+1
-0
Key.c
lg02y源码/Source/Application/Key/Key.c
+5
-5
Telltales_user.c
lg02y源码/Source/Application/Telltales/Telltales_user.c
+1
-1
No files found.
lg02y源码/IAR_EWARM/Application/settings/Application.DebugWithoutBootloader.cspy.bat
View file @
11760a7c
...
...
@@ -25,7 +25,7 @@ if not "%~1" == "" goto debugFile
@echo on
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "
C:\Users\Administrator\Desktop\L\lg02y\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" --backend -f "C:\Users\Administrator\Desktop\L\lg02y
\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "
E:\work\le19基于lg02y的变更单号0059的基础上改\lg02y源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" --backend -f "E:\work\le19基于lg02y的变更单号0059的基础上改\lg02y源码
\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
@echo off
goto end
...
...
@@ -34,7 +34,7 @@ goto end
@echo on
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "
C:\Users\Administrator\Desktop\L\lg02y\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" "--debug_file=%~1" --backend -f "C:\Users\Administrator\Desktop\L\lg02y
\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "
E:\work\le19基于lg02y的变更单号0059的基础上改\lg02y源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" "--debug_file=%~1" --backend -f "E:\work\le19基于lg02y的变更单号0059的基础上改\lg02y源码
\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
@echo off
:end
\ No newline at end of file
lg02y源码/Source/Application/Display/Gauge_Display.c
View file @
11760a7c
This diff is collapsed.
Click to expand it.
lg02y源码/Source/Application/Display/Gauge_Display.h
View file @
11760a7c
...
...
@@ -17,6 +17,14 @@ typedef struct
uint8_t
segNum
;
}
BatterySegMap_st_t
;
typedef
struct
{
uint32_t
Value
;
uint8_t
Symbol
;
uint8_t
Valid
;
}
BattCurr_st_t
;
#define POSITIVE_POWER_SEG_MAP_MAX (sizeof(PositivePowerSegMap)/sizeof(PowerSegMap_st_t))
#define NEGATIVE_POWER_SEG_MAP_MAX (sizeof(NegativePowerSegMap)/sizeof(PowerSegMap_st_t))
#define BATTERY_SEG_MAP_MAX (sizeof(batterySegMap)/sizeof(BatterySegMap_st_t))
...
...
lg02y源码/Source/Application/Display/SEG_DISPLAY.c
View file @
11760a7c
...
...
@@ -141,7 +141,7 @@ _Fun_Res SEG_SET_LED_STS(uint8_t LED_NUM , uint8_t m_Flag)
_Fun_Res
SEG_SET_GEAR
(
uint8_t
m_Gear_Flag
,
uint8_t
m_Gear
)
{
_Fun_Res
m_Res
;
if
((
m_Gear_Flag
>=
2u
)
||
(
m_Gear
>
3
u
))
if
((
m_Gear_Flag
>=
2u
)
||
(
m_Gear
>
4
u
))
{
m_Res
=
EX_ERR
;
}
...
...
@@ -221,6 +221,30 @@ _Fun_Res SEG_SET_GEAR(uint8_t m_Gear_Flag,uint8_t m_Gear)
IC2_SEG042
=
IC_SEG_OFF
;
IC2_SEG043
=
IC_SEG_ON
;
IC2_SEG044
=
IC_SEG_ON
;
}
else
if
(
m_Gear
==
Gear_S
)
{
IC2_SEG034
=
IC_SEG_OFF
;
IC2_SEG033
=
IC_SEG_ON
;
IC2_SEG031
=
IC_SEG_ON
;
IC2_SEG050
=
IC_SEG_ON
;
IC2_SEG036
=
IC_SEG_ON
;
IC2_SEG035
=
IC_SEG_OFF
;
IC2_SEG049
=
IC_SEG_OFF
;
IC2_SEG037
=
IC_SEG_ON
;
IC2_SEG041
=
IC_SEG_ON
;
IC2_SEG032
=
IC_SEG_ON
;
IC2_SEG030
=
IC_SEG_ON
;
IC2_SEG048
=
IC_SEG_ON
;
IC2_SEG038
=
IC_SEG_OFF
;
IC2_SEG046
=
IC_SEG_OFF
;
IC2_SEG047
=
IC_SEG_ON
;
IC2_SEG045
=
IC_SEG_ON
;
IC2_SEG039
=
IC_SEG_OFF
;
IC2_SEG040
=
IC_SEG_ON
;
IC2_SEG042
=
IC_SEG_ON
;
IC2_SEG043
=
IC_SEG_ON
;
IC2_SEG044
=
IC_SEG_ON
;
}
else
{
...
...
@@ -2839,6 +2863,30 @@ _Fun_Res SEG_SET_GEAR1(uint8_t m_Gear_Flag,uint8_t m_Gear)
IC2_SEG042
=
IC_SEG_OFF
;
IC2_SEG043
=
IC_SEG_ON
;
IC2_SEG044
=
IC_SEG_ON
;
}
else
if
(
m_Gear
==
Gear_S
)
{
IC2_SEG034
=
IC_SEG_OFF
;
IC2_SEG033
=
IC_SEG_ON
;
IC2_SEG031
=
IC_SEG_ON
;
IC2_SEG050
=
IC_SEG_ON
;
IC2_SEG036
=
IC_SEG_ON
;
IC2_SEG035
=
IC_SEG_OFF
;
IC2_SEG049
=
IC_SEG_OFF
;
IC2_SEG037
=
IC_SEG_ON
;
IC2_SEG041
=
IC_SEG_ON
;
IC2_SEG032
=
IC_SEG_ON
;
IC2_SEG030
=
IC_SEG_ON
;
IC2_SEG048
=
IC_SEG_ON
;
IC2_SEG038
=
IC_SEG_OFF
;
IC2_SEG046
=
IC_SEG_OFF
;
IC2_SEG047
=
IC_SEG_ON
;
IC2_SEG045
=
IC_SEG_ON
;
IC2_SEG039
=
IC_SEG_OFF
;
IC2_SEG040
=
IC_SEG_ON
;
IC2_SEG042
=
IC_SEG_ON
;
IC2_SEG043
=
IC_SEG_ON
;
IC2_SEG044
=
IC_SEG_ON
;
}
else
{
...
...
lg02y源码/Source/Application/Display/SEG_DISPLAY.h
View file @
11760a7c
...
...
@@ -49,6 +49,7 @@ enum
Gear_R
,
//R
Gear_N
,
//N
Gear_D
,
//D
Gear_S
,
//S
};
/**@brief �߿�����ʾ����*/
...
...
lg02y源码/Source/Application/Ex_Input/Line_In.c
View file @
11760a7c
...
...
@@ -24,6 +24,7 @@ const _LINE_IN_TriggerLevel_ Line_In_DEFAULT_Level[LINE_MAX] =
LEVEL_LOW
,
LEVEL_HIGH
,
LEVEL_LOW
,
//sh
LEVEL_HIGH
,
};
/*触发电平*/
const
_LINE_IN_TriggerLevel_
Line_In_Trigger_Level
[
LINE_MAX
]
=
...
...
@@ -44,6 +45,7 @@ const _LINE_IN_TriggerLevel_ Line_In_Trigger_Level[LINE_MAX] =
LEVEL_HIGH
,
LEVEL_LOW
,
LEVEL_HIGH
,
//sh
LEVEL_LOW
,
};
/*清除电平*/
const
_LINE_IN_TriggerLevel_
Line_In_Remove_Level
[
LINE_MAX
]
=
...
...
@@ -64,6 +66,7 @@ const _LINE_IN_TriggerLevel_ Line_In_Remove_Level[LINE_MAX] =
LEVEL_LOW
,
LEVEL_HIGH
,
LEVEL_LOW
,
//sh
LEVEL_HIGH
,
};
/*工作状态*/
const
_LINE_IN_WorkSt_
Line_In_Work_Status
[
LINE_MAX
]
=
...
...
@@ -84,6 +87,7 @@ const _LINE_IN_WorkSt_ Line_In_Work_Status[LINE_MAX] =
LINE_IN_IG_OFFON
,
LINE_IN_IG_OFFON
,
LINE_IN_IG_ON
,
//sh
LINE_IN_IG_ON
,
};
/*触发时间*/
const
uint32_t
Line_In_Trigger_Timer
[
LINE_MAX
]
=
...
...
@@ -104,6 +108,7 @@ const uint32_t Line_In_Trigger_Timer[LINE_MAX] =
100ul
,
100ul
,
100ul
,
//sh
100ul
,
};
/*清除电平*/
const
uint32_t
Line_In_Remove_Timer
[
LINE_MAX
]
=
...
...
@@ -124,6 +129,7 @@ const uint32_t Line_In_Remove_Timer[LINE_MAX] =
50ul
,
50ul
,
80ul
,
//sh
80ul
,
};
/*使能*/
...
...
@@ -197,6 +203,7 @@ void Line_In_Debounce_Service(void)
Line_In_Debounce
(
LINE_IN_SOC_CC
,
Get_Line_In_SOC_CC
());
Line_In_Debounce
(
LINE_IN_DOOROPEN
,
Get_Line_In_DoorOpen
());
Line_In_Debounce
(
LINE_IN_ENERGY_RECOVERY
,
Get_Line_In_Energy_Recovery
());
//sh //前雾灯
Line_In_Debounce
(
LINE_IN_ENERGY_RECOVERY0
,
Get_Line_In_Energy_Recovery0
());
}
}
/*获取当前硬线状态*/
...
...
lg02y源码/Source/Application/Ex_Input/Line_In.h
View file @
11760a7c
...
...
@@ -38,6 +38,7 @@ typedef enum
LINE_IN_SOC_CC
,
LINE_IN_DOOROPEN
,
LINE_IN_ENERGY_RECOVERY
,
//sh
LINE_IN_ENERGY_RECOVERY0
,
LINE_MAX
,
}
_LINE_IN_NAME_
;
...
...
lg02y源码/Source/Application/Key/Key.c
View file @
11760a7c
...
...
@@ -222,15 +222,15 @@ void EnergyRecovery0_Key_Detect(void)
if
(
SYS_OPR_STAT_IGN_ON
)
{
Key_SW_EnergyRecovery0
=
Get_Line_In_Energy_Recovery0
(
);
if
(
Key_SW_EnergyRecovery0
==
0
u
)
Key_SW_EnergyRecovery0
=
Get_LINE_IN_Sts
(
LINE_IN_ENERGY_RECOVERY0
);
if
(
Key_SW_EnergyRecovery0
==
1
u
)
{
if
(
Key_SW_EnergyRecovery0_Timer
<
255u
)
{
Key_SW_EnergyRecovery0_Timer
++
;
}
if
(
Key_SW_EnergyRecovery0_Timer
>=
20
0u
)
/*长按判断*/
if
(
Key_SW_EnergyRecovery0_Timer
>=
15
0u
)
/*长按判断*/
{
Key_EnergyRecovery0
=
MMI_KEY_HOLD
;
/*长按TRIP*/
}
...
...
@@ -239,9 +239,9 @@ void EnergyRecovery0_Key_Detect(void)
Key_EnergyRecovery0
=
MMI_KEY_IDLE
;
/*按键抬起*/
}
}
else
if
(
Key_SW_EnergyRecovery0
==
1
u
)
else
if
(
Key_SW_EnergyRecovery0
==
0
u
)
{
if
(
(
Key_SW_EnergyRecovery0_Timer
>
50u
)
&&
(
Key_SW_EnergyRecovery0_Timer
<
20
0u
)
)
if
(
(
Key_SW_EnergyRecovery0_Timer
>
20u
)
&&
(
Key_SW_EnergyRecovery0_Timer
<
15
0u
)
)
{
Key_EnergyRecovery0
=
MMI_KEY_PRESS
;
/*短按TRIP*/
}
...
...
lg02y源码/Source/Application/Telltales/Telltales_user.c
View file @
11760a7c
...
...
@@ -2415,7 +2415,7 @@ void SEG_DISPLAY(void)
{
Frame
=
0
;
}
if
(
GEAR
>
3
)
if
(
GEAR
>
4
)
{
GEAR
=
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