Commit 3977102f authored by 赵康弘's avatar 赵康弘

feat: 补充控制逻辑

parent caf56476
...@@ -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);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment