Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZhongTong-ZR5-A
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
赵康弘
ZhongTong-ZR5-A
Commits
3977102f
Commit
3977102f
authored
Oct 07, 2025
by
赵康弘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 补充控制逻辑
parent
caf56476
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
FrontDomain_Control.c
GHS/App/FrontDomain_Control.c
+10
-4
No files found.
GHS/App/FrontDomain_Control.c
View file @
3977102f
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
#include "SGMCD1020Q.h"
#include "SGMCD1020Q.h"
#include "TPS2HB35AQPWPRQ1.h"
#include "TPS2HB35AQPWPRQ1.h"
#include "TPS4H160Q1.h"
#include "TPS4H160Q1.h"
#include "Port_Cfg.h"
#include "Port.h"
void
FrontDomain_Control_Service
(
void
)
void
FrontDomain_Control_Service
(
void
)
{
{
...
@@ -473,19 +475,23 @@ void FrontDomain_Control_Service(void)
...
@@ -473,19 +475,23 @@ void FrontDomain_Control_Service(void)
/*4.2.58、 ASR输出信号(OUT83)*/
/*4.2.58、 ASR输出信号(OUT83)*/
if
((
Get_ID_18FFA017_Sig_Main_Power_Switch
()
==
1
)
&&
(
SGMCD1020Q_2
.
bits
.
sg2
==
1
))
if
((
Get_ID_18FFA017_Sig_Main_Power_Switch
()
==
1
)
&&
(
SGMCD1020Q_2
.
bits
.
sg2
==
1
))
{
{
// TPS2HB35_SetOutput3A_OUT24(1);
Port_SetPinDirection
(
Port_Config_PortGroup5_PortPin4
,
PORT_PIN_OUT
);
Dio_WriteChannel
(
DioConf_DioChannel_P05_04
,
STD_HIGH
);
}
}
else
else
{
{
// TPS2HB35_SetOutput3A_OUT24(0);
Port_SetPinDirection
(
Port_Config_PortGroup5_PortPin4
,
PORT_PIN_OUT
);
Dio_WriteChannel
(
DioConf_DioChannel_P05_04
,
STD_LOW
);
}
}
/*4.2.59、 Autohold输出信号(OUT84)*/
/*4.2.59、 Autohold输出信号(OUT84)*/
if
((
Get_ID_18FFA017_Sig_Main_Power_Switch
()
==
1
)
&&
(
SGMCD1020Q_2
.
bits
.
sp3
==
1
))
if
((
Get_ID_18FFA017_Sig_Main_Power_Switch
()
==
1
)
&&
(
SGMCD1020Q_2
.
bits
.
sp3
==
1
))
{
{
// TPS2HB35_SetOutput3A_OUT24(1);
Port_SetPinDirection
(
Port_Config_PortGroup5_PortPin6
,
PORT_PIN_OUT
);
Dio_WriteChannel
(
DioConf_DioChannel_P05_06
,
STD_HIGH
);
}
}
else
else
{
{
// TPS2HB35_SetOutput3A_OUT24(0);
Port_SetPinDirection
(
Port_Config_PortGroup5_PortPin6
,
PORT_PIN_OUT
);
Dio_WriteChannel
(
DioConf_DioChannel_P05_06
,
STD_LOW
);
}
}
}
}
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