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
ba4b1598
Commit
ba4b1598
authored
Mar 29, 2024
by
李秉薇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'shihao' into LBW
parents
ce1a442a
78457860
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
297 additions
and
12 deletions
+297
-12
.gitignore
.gitignore
+0
-1
Application.Debug.cspy.bat
...IAR_EWARM/Application/settings/Application.Debug.cspy.bat
+41
-0
Application.DebugWithoutBootloader.cspy.bat
...tion/settings/Application.DebugWithoutBootloader.cspy.bat
+41
-0
Application.DebugWithoutBootloader.cspy.ps1
...tion/settings/Application.DebugWithoutBootloader.cspy.ps1
+31
-0
Application.Release.cspy.bat
...R_EWARM/Application/settings/Application.Release.cspy.bat
+41
-0
Application.crun
le19源码/IAR_EWARM/Application/settings/Application.crun
+16
-0
Application.dnx
le19源码/IAR_EWARM/Application/settings/Application.dnx
+62
-0
Application_DebugWithoutBootloader.jlink
...ication/settings/Application_DebugWithoutBootloader.jlink
+39
-0
Popup_Scheduler.c
le19源码/Source/Application/Alarm/Popup_Scheduler.c
+2
-2
Popups.c
le19源码/Source/Application/Alarm/Popups.c
+15
-0
Gauge_Display.c
le19源码/Source/Application/Display/Gauge_Display.c
+8
-8
Tasks.c
le19源码/Source/Application/System/src/Tasks.c
+1
-1
No files found.
.gitignore
deleted
100644 → 0
View file @
ce1a442a
/le19源码/IAR_EWARM/Application/settings
le19源码/IAR_EWARM/Application/settings/Application.Debug.cspy.bat
0 → 100644
View file @
ba4b1598
@REM This batch file has been generated by the IAR Embedded Workbench
@REM C-SPY Debugger, as an aid to preparing a command line for running
@REM the cspybat command line utility using the appropriate settings.
@REM
@REM Note that this file is generated every time a new debug session
@REM is initialized, so you may want to move or rename the file before
@REM making changes.
@REM
@REM You can launch cspybat by typing the name of this batch file followed
@REM by the name of the debug file (usually an ELF/DWARF or UBROF file).
@REM
@REM Read about available command line parameters in the C-SPY Debugging
@REM Guide. Hints about additional command line parameters that may be
@REM useful in specific cases:
@REM --download_only Downloads a code image without starting a debug
@REM session afterwards.
@REM --silent Omits the sign-on message.
@REM --timeout Limits the maximum allowed execution time.
@REM
@echo off
if not "%~1" == "" goto debugFile
@echo on
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "E:\work\GIT\lg02y\IAR_EWARM\Application\settings\Application.Debug.general.xcl" --backend -f "E:\work\GIT\lg02y\IAR_EWARM\Application\settings\Application.Debug.driver.xcl"
@echo off
goto end
:debugFile
@echo on
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "E:\work\GIT\lg02y\IAR_EWARM\Application\settings\Application.Debug.general.xcl" "--debug_file=%~1" --backend -f "E:\work\GIT\lg02y\IAR_EWARM\Application\settings\Application.Debug.driver.xcl"
@echo off
:end
\ No newline at end of file
le19源码/IAR_EWARM/Application/settings/Application.DebugWithoutBootloader.cspy.bat
0 → 100644
View file @
ba4b1598
@REM This batch file has been generated by the IAR Embedded Workbench
@REM C-SPY Debugger, as an aid to preparing a command line for running
@REM the cspybat command line utility using the appropriate settings.
@REM
@REM Note that this file is generated every time a new debug session
@REM is initialized, so you may want to move or rename the file before
@REM making changes.
@REM
@REM You can launch cspybat by typing the name of this batch file followed
@REM by the name of the debug file (usually an ELF/DWARF or UBROF file).
@REM
@REM Read about available command line parameters in the C-SPY Debugging
@REM Guide. Hints about additional command line parameters that may be
@REM useful in specific cases:
@REM --download_only Downloads a code image without starting a debug
@REM session afterwards.
@REM --silent Omits the sign-on message.
@REM --timeout Limits the maximum allowed execution time.
@REM
@echo off
if not "%~1" == "" goto debugFile
@echo on
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "D:\le19基于lg02y的变更单号0059的基础上改\le19源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" --backend -f "D:\le19基于lg02y的变更单号0059的基础上改\le19源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
@echo off
goto end
:debugFile
@echo on
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "D:\le19基于lg02y的变更单号0059的基础上改\le19源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl" "--debug_file=%~1" --backend -f "D:\le19基于lg02y的变更单号0059的基础上改\le19源码\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
@echo off
:end
\ No newline at end of file
le19源码/IAR_EWARM/Application/settings/Application.DebugWithoutBootloader.cspy.ps1
0 → 100644
View file @
ba4b1598
param
([
String
]
$debugfile
=
""
)
;
# This powershell file has been generated by the IAR Embedded Workbench
# C - SPY Debugger, as an aid to preparing a command line for running
# the cspybat command line utility using the appropriate settings.
#
# Note that this file is generated every time a new debug session
# is initialized, so you may want to move or rename the file before
# making changes.
#
# You can launch cspybat by typing Powershell.exe -File followed by the name of this batch file, followed
# by the name of the debug file (usually an ELF / DWARF or UBROF file).
#
# Read about available command line parameters in the C - SPY Debugging
# Guide. Hints about additional command line parameters that may be
# useful in specific cases :
# --download_only Downloads a code image without starting a debug
# session afterwards.
# --silent Omits the sign - on message.
# --timeout Limits the maximum allowed execution time.
#
if
(
$debugfile
-eq
""
)
{
&
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\common\bin\cspybat"
-f
"E:\诊断项目\吉利\LG02Y\App\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl"
--backend -f
"E:\诊断项目\吉利\LG02Y\App\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
}
else
{
&
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\common\bin\cspybat"
-f
"E:\诊断项目\吉利\LG02Y\App\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.general.xcl"
--debug_file
=
$debugfile
--backend -f
"E:\诊断项目\吉利\LG02Y\App\IAR_EWARM\Application\settings\Application.DebugWithoutBootloader.driver.xcl"
}
le19源码/IAR_EWARM/Application/settings/Application.Release.cspy.bat
0 → 100644
View file @
ba4b1598
@REM This batch file has been generated by the IAR Embedded Workbench
@REM C-SPY Debugger, as an aid to preparing a command line for running
@REM the cspybat command line utility using the appropriate settings.
@REM
@REM Note that this file is generated every time a new debug session
@REM is initialized, so you may want to move or rename the file before
@REM making changes.
@REM
@REM You can launch cspybat by typing the name of this batch file followed
@REM by the name of the debug file (usually an ELF/DWARF or UBROF file).
@REM
@REM Read about available command line parameters in the C-SPY Debugging
@REM Guide. Hints about additional command line parameters that may be
@REM useful in specific cases:
@REM --download_only Downloads a code image without starting a debug
@REM session afterwards.
@REM --silent Omits the sign-on message.
@REM --timeout Limits the maximum allowed execution time.
@REM
@echo off
if not "%~1" == "" goto debugFile
@echo on
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "E:\work\GIT\lg02y\IAR_EWARM\Application\settings\Application.Release.general.xcl" --backend -f "E:\work\GIT\lg02y\IAR_EWARM\Application\settings\Application.Release.driver.xcl"
@echo off
goto end
:debugFile
@echo on
"C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5\common\bin\cspybat" -f "E:\work\GIT\lg02y\IAR_EWARM\Application\settings\Application.Release.general.xcl" "--debug_file=%~1" --backend -f "E:\work\GIT\lg02y\IAR_EWARM\Application\settings\Application.Release.driver.xcl"
@echo off
:end
\ No newline at end of file
le19源码/IAR_EWARM/Application/settings/Application.crun
0 → 100644
View file @
ba4b1598
<?xml version="1.0" encoding="iso-8859-1"?>
<crun>
<version>
1
</version>
<filter_entries>
<filter
index=
"0"
type=
"default"
>
<type>
*
</type>
<start_file>
*
</start_file>
<end_file>
*
</end_file>
<action_debugger>
0
</action_debugger>
<action_log>
1
</action_log>
</filter>
</filter_entries>
</crun>
le19源码/IAR_EWARM/Application/settings/Application.dnx
0 → 100644
View file @
ba4b1598
<?xml version="1.0"?>
<settings>
<Stack>
<FillEnabled>
0
</FillEnabled>
<OverflowWarningsEnabled>
1
</OverflowWarningsEnabled>
<WarningThreshold>
90
</WarningThreshold>
<SpWarningsEnabled>
1
</SpWarningsEnabled>
<WarnLogOnly>
1
</WarnLogOnly>
<UseTrigger>
1
</UseTrigger>
<TriggerName>
main
</TriggerName>
<LimitSize>
0
</LimitSize>
<ByteLimit>
50
</ByteLimit>
</Stack>
<JLinkDriver>
<WatchCond>
_ 0
</WatchCond>
<Watch0>
_ 0 "" 0 "" 0 "" 0 "" 0 0 0 0
</Watch0>
<Watch1>
_ 0 "" 0 "" 0 "" 0 "" 0 0 0 0
</Watch1>
<CStepIntDis>
_ 0
</CStepIntDis>
<LeaveTargetRunning>
_ 0
</LeaveTargetRunning>
</JLinkDriver>
<DebugChecksum>
<Checksum>
503555919
</Checksum>
</DebugChecksum>
<Exceptions>
<StopOnUncaught>
_ 0
</StopOnUncaught>
<StopOnThrow>
_ 0
</StopOnThrow>
</Exceptions>
<CallStack>
<ShowArgs>
0
</ShowArgs>
</CallStack>
<Disassembly>
<MixedMode>
1
</MixedMode>
</Disassembly>
<CallStackLog>
<Enabled>
0
</Enabled>
</CallStackLog>
<CallStackStripe>
<ShowTiming>
1
</ShowTiming>
</CallStackStripe>
<TermIOLog>
<LoggingEnabled>
_ 0
</LoggingEnabled>
<LogFile>
_ ""
</LogFile>
</TermIOLog>
<Log_file>
<LoggingEnabled>
_ 0
</LoggingEnabled>
<LogFile>
_ ""
</LogFile>
<Category>
_ 0
</Category>
</Log_file>
<Disassemble_mode>
<mode>
0
</mode>
</Disassemble_mode>
<DisassembleMode>
<mode>
0
</mode>
</DisassembleMode>
<Breakpoints2>
<Count>
0
</Count>
</Breakpoints2>
<Aliases>
<Count>
0
</Count>
<SuppressDialog>
0
</SuppressDialog>
</Aliases>
</settings>
le19源码/IAR_EWARM/Application/settings/Application_DebugWithoutBootloader.jlink
0 → 100644
View file @
ba4b1598
[BREAKPOINTS]
ForceImpTypeAny = 0
ShowInfoWin = 1
EnableFlashBP = 2
BPDuringExecution = 0
[CFI]
CFISize = 0x00
CFIAddr = 0x00
[CPU]
MonModeVTableAddr = 0xFFFFFFFF
MonModeDebug = 0
MaxNumAPs = 0
LowPowerHandlingMode = 0
OverrideMemMap = 0
AllowSimulation = 1
ScriptFile="..\..\debugger_scripts\Default.JLinkScript"
[FLASH]
CacheExcludeSize = 0x00
CacheExcludeAddr = 0x00
MinNumBytesFlashDL = 0
SkipProgOnCRCMatch = 1
VerifyDownload = 1
AllowCaching = 1
EnableFlashDL = 2
Override = 1
Device="Cortex-R5"
[GENERAL]
WorkRAMSize = 0x00
WorkRAMAddr = 0x00
RAMUsageLimit = 0x00
[SWO]
SWOLogFile=""
[MEM]
RdOverrideOrMask = 0x00
RdOverrideAndMask = 0xFFFFFFFF
RdOverrideAddr = 0xFFFFFFFF
WrOverrideOrMask = 0x00
WrOverrideAndMask = 0xFFFFFFFF
WrOverrideAddr = 0xFFFFFFFF
le19源码/Source/Application/Alarm/Popup_Scheduler.c
View file @
ba4b1598
...
...
@@ -25,7 +25,7 @@ const PopupAttributeStruct PopupAttributeTable_1[POPUP_NUMBER_TOTAL] =
/* 倒车雷达系统故障 */
{
12u
,
POPUP_RADAR_SYSTEM_FAILURE
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_RADAR_2S
,
POPUP_MODE_SINGLE
,
30u
,
10u
,
},
/* 倒车雷达传感器故障 */
{
12u
,
POPUP_RADAR_SENSOR_FAILURE
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_RADAR_2S
,
POPUP_MODE_SINGLE
,
20u
,
10u
,
},
/* 雷达开关故障 */
{
0u
,
POPUP_RADAR_SWITCH_FAILURE
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_RADAR_0S
,
POPUP_MODE_SINGLE
,
30u
,
10u
,
},
/* 雷达自检ok长鸣0.5s */
{
12u
,
POPUP_RADAR_CHECK_OK
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_RADAR_OK0S
,
POPUP_MODE_
SINGLE
,
5u
,
5u
,
},
/* 雷达自检ok长鸣0.5s */
{
12u
,
POPUP_RADAR_CHECK_OK
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_RADAR_OK0S
,
POPUP_MODE_
MULTI
,
5u
,
5u
,
},
/* 制动液位低 */
{
2u
,
POPUP_EPB_Status
,
NULL
,
1u
,
POPUP_MODE_LONG_HINT
,
SND_EPB_Status
,
POPUP_MODE_SINGLE
,
11u
,
10u
,
},
/* 安全带未系 1HZ */
{
3u
,
POPUP_SEATBELT_DR_1HZ
,
NULL
,
1u
,
POPUP_MODE_LONG_HINT
,
SND_SEATBELT_DR_1HZ
,
POPUP_MODE_MULTI
,
0xFFFFu
,
10u
,
},
/* 安全带未系 2HZ */
{
3u
,
POPUP_SEATBELT_DR_2HZ
,
NULL
,
1u
,
POPUP_MODE_LONG_HINT
,
SND_SEATBELT_DR_2HZ
,
POPUP_MODE_MULTI
,
0xFFFFu
,
10u
,
},
...
...
@@ -61,7 +61,7 @@ const PopupAttributeStruct PopupAttributeTable_1[POPUP_NUMBER_TOTAL] =
/* OTA 报警4 */
{
22u
,
POPUP_OTA_4
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_OTA_4
,
POPUP_MODE_SINGLE
,
11u
,
10u
,
},
/* OTA 报警5 */
{
22u
,
POPUP_OTA_5
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_OTA_5
,
POPUP_MODE_SINGLE
,
11u
,
10u
,
},
/* OTA 报警5 */
{
22u
,
POPUP_ESC
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_ESC
,
POPUP_MODE_SINGLE
,
11u
,
10u
,
},
/* 超速报警 */
{
13u
,
POPUP_Over_Speed
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_Over_Speed
,
POPUP_MODE_SINGLE
,
11
u
,
10u
,
},
/* 超速报警 */
{
13u
,
POPUP_Over_Speed
,
NULL
,
1u
,
POPUP_MODE_SHORT_HINT
,
SND_Over_Speed
,
POPUP_MODE_SINGLE
,
40
u
,
10u
,
},
/*==========================================================================================================================================================================================================================================*/
};
...
...
le19源码/Source/Application/Alarm/Popups.c
View file @
ba4b1598
...
...
@@ -445,6 +445,8 @@ void Popups_Polling(void)
//超速报警
if
(
IGstPopup1
==
IGN_ON
)
{
m_Vspeed
/=
10
;
m_Vspeed
*=
10
;
if
(
m_Vspeed
>
Over_Speed_Config
)
{
Popup_Request
(
POPUP_Over_Speed
);
...
...
@@ -504,6 +506,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_1HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
}
else
if
(
RADAR_SOUND
==
POPUP_Radar_2HZ
)
{
...
...
@@ -512,6 +515,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
}
else
if
(
RADAR_SOUND
==
POPUP_Radar_4HZ
)
{
...
...
@@ -520,6 +524,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_4HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
}
else
if
(
RADAR_SOUND
==
POPUP_Radar_Changming
)
{
...
...
@@ -536,6 +541,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
}
}
else
...
...
@@ -544,6 +550,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
}
}
else
...
...
@@ -552,6 +559,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_4HZ
);
PopupAndSound_Delete
(
POPUP_Radar_1HZ
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Clear
(
POPUP_Radar_Changming
);
}
}
else
if
(
Val_EOL_F102_RadarType
()
==
3
)
...
...
@@ -566,6 +574,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_Radar_2HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
break
;
case
2
:
//4hz
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
...
@@ -573,6 +582,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_RADAR_CHECK_OK
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Request
(
POPUP_Radar_4HZ
);
Popup_Clear
(
POPUP_Radar_Changming
);
break
;
case
3
:
//长鸣
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
...
@@ -587,6 +597,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Request
(
POPUP_RADAR_CHECK_OK
);
Popup_Clear
(
POPUP_Radar_Changming
);
break
;
case
5
:
//雷达故障 长鸣2s
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
...
@@ -594,6 +605,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_RADAR_CHECK_OK
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Clear
(
POPUP_Radar_Changming
);
break
;
case
6
:
//雷达数据超时 长鸣2s
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
...
@@ -601,6 +613,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_RADAR_CHECK_OK
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
Popup_Request
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Clear
(
POPUP_Radar_Changming
);
break
;
default:
//0 不报警
PopupAndSound_Delete
(
POPUP_Radar_2HZ
);
...
...
@@ -608,6 +621,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_RADAR_CHECK_OK
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Clear
(
POPUP_Radar_Changming
);
break
;
}
}
...
...
@@ -618,6 +632,7 @@ void Popups_Polling(void)
PopupAndSound_Delete
(
POPUP_RADAR_CHECK_OK
);
PopupAndSound_Delete
(
POPUP_Radar_Changming
);
PopupAndSound_Delete
(
POPUP_RADAR_SENSOR_FAILURE
);
Popup_Clear
(
POPUP_Radar_Changming
);
}
}
else
...
...
le19源码/Source/Application/Display/Gauge_Display.c
View file @
ba4b1598
...
...
@@ -290,10 +290,10 @@ void Gauge_Power_Display(void)
}
BattCurr
.
Value
=
Batt_Curr
;
//100倍
BattCurr
.
Value
*=
1
00
;
//乘100%
BattCurr
.
Value
/=
2
00
;
//除200
BattCurr
.
Value
+=
90
;
//大于等于10进1 0.1*100=10
BattCurr
.
Value
/=
100
;
//1倍,留整数
BattCurr
.
Value
*=
1
;
//乘100%
BattCurr
.
Value
/=
2
;
//除200
//
BattCurr.Value += 90;//大于等于10进1 0.1*100=10
//
BattCurr.Value /= 100;//1倍,留整数
}
else
{
...
...
@@ -311,14 +311,14 @@ void Gauge_Power_Display(void)
{
if
(
BattCurr
.
Value
==
0
)
{
SEG_SET_PowerDial
(
1u
,
0u
,
0u
,
255
u
);
SEG_SET_PowerDial
(
1u
,
0u
,
0u
,
0
u
);
}
else
{
//-1格和-50%
SEG_SET_PowerDial
(
1u
,
0x81u
,
1u
,
50u
);
if
(
BattCurr
.
Value
>
50
)
if
(
BattCurr
.
Value
>
50
00
)
{
//-1 -2格和-100%
SEG_SET_PowerDial
(
1u
,
0x82u
,
1u
,
100u
);
...
...
@@ -426,8 +426,8 @@ void Gauge_Clock_Display(void)
if
(
SYS_OPR_STAT_IGN_ON
)
{
//��ȡʱ��
RTCTimeCurrent
.
Hour
=
Get_
RTC_HOUR
(
);
RTCTimeCurrent
.
Minute
=
Get_
RTC_MINUTE
(
);
RTCTimeCurrent
.
Hour
=
Get_
ID_18FEE69F_Sig_TBOX_Hour
(
);
RTCTimeCurrent
.
Minute
=
Get_
ID_18FEE69F_Sig_TBOX_Minute
(
);
//ʱ����ʾ
if
(
Factory_ClearOdo_Display_Flag
==
0
)
...
...
le19源码/Source/Application/System/src/Tasks.c
View file @
ba4b1598
...
...
@@ -172,7 +172,7 @@ void Sys_Run_Mode_100ms_Tasks_Group0(void)
SERVICE_Time_Calibration_Service
();
//时钟更新服务
//
SERVICE_Time_Calibration_Service(); //时钟更新服务
//RTE_RTC_Services_100Ms_Cbk(); //时钟服务函数
Services_ODO_100MS_Cbk
();
// Services_ODO_100MS_Cbk1();/*程序内部使用,里程备份增加专用里程,非显示里程*/
...
...
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