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
82d12696
Commit
82d12696
authored
Dec 04, 2023
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改进入高低压后,60秒,关闭指示灯,断码,外发
parent
d1308f7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
PowerManagement.c
le19源码/Source/Application/Power/PowerManagement.c
+12
-1
System_Status_Monitor.c
le19源码/Source/Application/Power/System_Status_Monitor.c
+5
-1
System_Status_Monitor.h
le19源码/Source/Application/Power/System_Status_Monitor.h
+1
-1
No files found.
le19源码/Source/Application/Power/PowerManagement.c
View file @
82d12696
...
...
@@ -467,18 +467,27 @@ void Power_KL15_Init(void)
void
Sys_Stop_Task
(
void
)
{
static
uint8_t
Delaycnt
;
static
uint8_t
i
;
/*关闭所有外设功能,只保留AD采集,电源状态切换*/
{
/*关闭电机待添加*/
/*关闭扬声器待添加*/
BackLight_Sleep_Init
(
);
/*关闭背光*/
for
(
i
=
0
;
i
<
36
;
i
++
)
{
LED_Driver_Channel_Set
(
0
,
i
,
0
);
}
LED_Driver_Scan_Refresh
();
CAN_TX_SetEnable
(
0
);
BU98R10_Shutdown
();
}
Delaycnt
=
0u
;
for
(
;;
)
{
/*喂狗*/
WDT_Clear
(
);
LED_Driver_Service
();
/*一定周期调用2ms*/
Delay_Ms
(
2U
);
...
...
@@ -497,6 +506,8 @@ void Sys_Stop_Task(void)
// StepMotor_Reset(0u);
// StepMotor_Limit_Init();
RTE_PWM_Start
(
);
CAN_TX_SetEnable
(
0x55
);
Power_Wakeup_Init
();
return
;
}
}
...
...
le19源码/Source/Application/Power/System_Status_Monitor.c
View file @
82d12696
...
...
@@ -397,7 +397,7 @@ static void System_Fun_Process(void)
SysFun_KL30Monitor
.
DebounceTimer
++
;
DebpounceTimer
=
0u
;
/*计时累计时间1000*2ms*/
if
(
SysFun_KL30Monitor
.
DebounceTimer
>=
1
000U
)
/*40202-8*/
if
(
SysFun_KL30Monitor
.
DebounceTimer
>=
30
000U
)
/*40202-8*/
{
SysFun_KL30Monitor
.
DebounceTimer
=
0U
;
...
...
@@ -432,6 +432,10 @@ static void System_Fun_Process(void)
}
}
if
((
SysFun_KL30Monitor
.
FinalSts
==
1u
)
||
(
SysFun_KL30Monitor
.
FinalSts
>=
7u
))
{
SysFun_KL30Monitor
.
FinalSts
=
m8
;
}
}
else
{
...
...
le19源码/Source/Application/Power/System_Status_Monitor.h
View file @
82d12696
...
...
@@ -86,7 +86,7 @@ extern MonitorStruct SysNM_KL15Monitor;
#define EXIT_HIGH_Y_RANGE 16000U
#define ENTER_HIGH_Y_RANGE 1
65
00U
#define ENTER_HIGH_Y_RANGE 1
80
00U
#define EXIT_HIGH_N_RANGE 18500U
...
...
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