Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
b7b83578
Commit
b7b83578
authored
Jul 31, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:屏蔽休眠初始化函数
parent
93227110
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
PowerManag_user.c
Firmware/Source/Component/PowerManagement/PowerManag_user.c
+11
-9
No files found.
Firmware/Source/Component/PowerManagement/PowerManag_user.c
View file @
b7b83578
...
@@ -66,7 +66,7 @@ static void Power_KL30_Init(void)
...
@@ -66,7 +66,7 @@ static void Power_KL30_Init(void)
Menu_User_Init
();
Menu_User_Init
();
Can_Init
();
Can_Init
();
Protocol_KL30_Wakeup_Init
();
Protocol_KL30_Wakeup_Init
();
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
KL15_AD_IN
,
Trigger_Rising
);
//
RTE_DEEPSLEEP_GPIO_Interrupt_Enable(KL15_AD_IN, Trigger_Rising);
}
}
static
void
Power_Wakeup_Init
(
void
)
static
void
Power_Wakeup_Init
(
void
)
...
@@ -90,7 +90,7 @@ static void Power_Wakeup_Init(void)
...
@@ -90,7 +90,7 @@ static void Power_Wakeup_Init(void)
Menu_User_WAKEUP
();
Menu_User_WAKEUP
();
Can_Init
();
Can_Init
();
Protocol_KL30_Wakeup_Init
();
Protocol_KL30_Wakeup_Init
();
RTE_DEEPSLEEP_GPIO_Interrupt_Enable
(
KL15_AD_IN
,
Trigger_Rising
);
//
RTE_DEEPSLEEP_GPIO_Interrupt_Enable(KL15_AD_IN, Trigger_Rising);
}
}
static
void
Power_LVP_Init
(
void
)
static
void
Power_LVP_Init
(
void
)
...
@@ -105,6 +105,7 @@ static void Power_OVP_Init(void)
...
@@ -105,6 +105,7 @@ static void Power_OVP_Init(void)
static
void
Power_IG_OFF_Init
(
void
)
static
void
Power_IG_OFF_Init
(
void
)
{
{
Line_In_KL15_OFF_Init
();
Line_In_KL15_OFF_Init
();
RTE_GPIO_Set_Level
(
Blacklight_PWM
,
0
);
}
}
static
void
Power_IG_ON_Init
(
void
)
static
void
Power_IG_ON_Init
(
void
)
...
@@ -113,6 +114,7 @@ static void Power_IG_ON_Init(void)
...
@@ -113,6 +114,7 @@ static void Power_IG_ON_Init(void)
Line_In_KL15_ON_Init
();
Line_In_KL15_ON_Init
();
Telltales_KL15_Init
();
Telltales_KL15_Init
();
Fuel_KL15_Init
();
Fuel_KL15_Init
();
RTE_GPIO_Set_Level
(
Blacklight_PWM
,
1
);
}
}
static
void
Power_Sleep_Init
(
void
)
static
void
Power_Sleep_Init
(
void
)
...
@@ -157,16 +159,16 @@ static Power_Status_em Power_Stay_OFF(void)
...
@@ -157,16 +159,16 @@ static Power_Status_em Power_Stay_OFF(void)
}
}
else
else
{
{
if
((
Common_GetIgnOffTime
()
<
1000
))
if
((
Common_GetIgnOffTime
()
<
1000
0
))
{
{
u8PowerSts
=
EM_IGN_OFF
;
u8PowerSts
=
EM_IGN_OFF
;
}
}
else
else
{
{
//igoff大于1s且下15电才进休眠,否则一直保持在igoff状态
//igoff大于1s且下15电才进休眠,否则一直保持在igoff状态
if
(
Sys_Read_KL15_Voltage
()
<
5000
)
//
if(Sys_Read_KL15_Voltage() < 5000)
{
{
u8PowerSts
=
EM_IGN_Sleep_Init
;
//
u8PowerSts = EM_IGN_Sleep_Init;
}
}
}
}
}
}
...
@@ -202,10 +204,10 @@ static Power_Status_em Power_Stay_Protect(void)
...
@@ -202,10 +204,10 @@ static Power_Status_em Power_Stay_Protect(void)
}
}
//进入异常电压,电源库里直接将15电等于0,则直接退出,状态是igoff,下15则进入休眠
//进入异常电压,电源库里直接将15电等于0,则直接退出,状态是igoff,下15则进入休眠
if
(
SYS_OPR_STAT_IGN_OFF
)
//
if ( SYS_OPR_STAT_IGN_OFF )
{
//
{
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