From 247a3d966d515c1cbec230bd4fe6ece23176eaca Mon Sep 17 00:00:00 2001 From: kyz Date: Tue, 3 Dec 2024 21:01:24 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E7=94=B5=E5=8E=8B=E6=9A=82?= =?utf8?q?=E5=8D=87=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bsp/Src/Drive_AllINT.c | 6 +++++- Devices/Include/EMU_Drive.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Bsp/Src/Drive_AllINT.c b/Bsp/Src/Drive_AllINT.c index 96e8fcf..3df7c46 100644 --- a/Bsp/Src/Drive_AllINT.c +++ b/Bsp/Src/Drive_AllINT.c @@ -53,8 +53,12 @@ void TC0_HANDLER(void) //ϵͳ //Dl645Inactive.PubData.InactiveStamp = BKGRD_INACTIVE_SAVE; SAGU_IF_Clear; regs_adcwave.st=1; - cnt = 500; + cnt = 1000; //Dl645Bkgrd.PubData.Active = BKGRD_ACTIVE_POWSUB; + }else if( Status_Test_SWELLU() ){ + SWELLU_IF_Clear; + regs_adcwave.st=2; + cnt = 1000; }else{ if( cnt ){ cnt--; diff --git a/Devices/Include/EMU_Drive.h b/Devices/Include/EMU_Drive.h index d06db9f..c0427da 100644 --- a/Devices/Include/EMU_Drive.h +++ b/Devices/Include/EMU_Drive.h @@ -17,7 +17,7 @@ #define Status_Test_SAGU() ((EMU->PHASES & 0x10)?(0x01):(0x00)) //SAG_U״̬¼ì²â #endif #define SAGU_IF_Clear (EMU->SPCMD = SPCMD_EN , EMU->EMMIF|=0x4000 , EMU->SPCMD = SPCMD_DIS) -#define SWELLU_IF_lear_IF_Clear (EMU->SPCMD = SPCMD_EN , EMU->EMMIF2|=0x0E00 , EMU->SPCMD = SPCMD_DIS) +#define SWELLU_IF_Clear (EMU->SPCMD = SPCMD_EN , EMU->EMMIF2|=0x0E00 , EMU->SPCMD = SPCMD_DIS) #define M_220V_5A 1 //220V/5A #define M_57P7V_1P5A 2 //57.7V/1.5A -- 2.34.1