Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
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
TY
TianYing_ty100
Commits
3d5d81e8
Commit
3d5d81e8
authored
Aug 21, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:IGOFF判断唤醒脚电平为低才允许休眠,规避黑屏风险,解决56654禅道问题,但存在不休眠的风险
parent
795efd1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+7
-6
No files found.
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
3d5d81e8
...
@@ -236,10 +236,6 @@ static void Power_Sleep_Init(void)
...
@@ -236,10 +236,6 @@ static void Power_Sleep_Init(void)
LED_Driver_Service
();
LED_Driver_Service
();
Analog_Signal_Conv_Stop
();
Analog_Signal_Conv_Stop
();
UART_DeInit
(
UART0
);
UART_DeInit
(
UART0
);
//if(RTE_GPIO_Get_Level(WAKEUP_KL15_In) == 0)
{
RTE_DEEPSLEEP_Enable
();
}
}
}
...
@@ -352,10 +348,15 @@ static Power_Status_em Power_Stay_Sleep(void)
...
@@ -352,10 +348,15 @@ static Power_Status_em Power_Stay_Sleep(void)
{
{
Power_Status_em
u8PowerSts
=
EM_IGN_Sleep
;
Power_Status_em
u8PowerSts
=
EM_IGN_Sleep
;
while
(
1
)
while
(
1
)
{
{
RTE_WDT_Clear
();
RTE_WDT_Clear
();
if
(
RTE_GPIO_Get_Level
(
WAKEUP_KL15_In
))
/* KL15 */
if
(
RTE_GPIO_Get_Level
(
WAKEUP_KL15_In
)
==
0
)
{
RTE_DEEPSLEEP_Enable
();
}
else
//(RTE_GPIO_Get_Level(WAKEUP_KL15_In))/* KL15 */
{
{
u8PowerSts
=
EM_IGN_Wakeup
;
u8PowerSts
=
EM_IGN_Wakeup
;
break
;
break
;
...
...
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