From 43ccea0c82ecbb4b812216a00fab6783995a4e37 Mon Sep 17 00:00:00 2001 From: seklyuts Date: Mon, 3 Jun 2024 09:05:26 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/epwm_test/src/Peripherals/sdfm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Projects/epwm_test/src/Peripherals/sdfm.c b/Projects/epwm_test/src/Peripherals/sdfm.c index 74264e6..bb3f2b1 100644 --- a/Projects/epwm_test/src/Peripherals/sdfm.c +++ b/Projects/epwm_test/src/Peripherals/sdfm.c @@ -308,7 +308,7 @@ void SdfmInit(void) -void sdfmGet(uint16_t N) +void sdfmGetResult(uint16_t N) { uint16_t i = 0; int32_t OffsetCount = 0; @@ -383,7 +383,7 @@ uint32_t IntFlags; IntFlags = Sdfm_readFlagRegister(SDFM1); sdfmIndex |= (IntFlags & 0xF000)>>12; - for(i = 0; i < 4; i++) if((uint16_t)IntFlags & (0x1000 << i)) sdfmGet(i); + for(i = 0; i < 4; i++) if((uint16_t)IntFlags & (0x1000 << i)) sdfmGetResult(i); for(i = 0; i < 4; i++) if((uint16_t)IntFlags & (0x100 << i)) sdfmErr(i); Sdfm_clearFlagRegister(SDFM1,IntFlags); @@ -401,7 +401,7 @@ uint32_t IntFlags; IntFlags = Sdfm_readFlagRegister(SDFM2); sdfmIndex |= (IntFlags & 0xF000)>>8; - for(i = 0; i < 4; i++) if((uint16_t)IntFlags & (0x1000 << i)) sdfmGet(i+4); + for(i = 0; i < 4; i++) if((uint16_t)IntFlags & (0x1000 << i)) sdfmGetResult(i+4); for(i = 0; i < 4; i++) if((uint16_t)IntFlags & (0x100 << i)) sdfmErr(i+4); Sdfm_clearFlagRegister(SDFM2,IntFlags);