forkd

Dependencies:   mbed

Fork of LG2 by Dmitry Kovalev

Revision:
226:4a4d5bd5fcd7
Parent:
193:a0fe8bfc97e4
--- a/CyclesSync.c	Tue Dec 12 05:53:39 2017 +0000
+++ b/CyclesSync.c	Tue Dec 26 05:14:09 2017 +0000
@@ -17,7 +17,7 @@
 #include "SIP.h"
 #include "el_lin.h"
 #include "InputOutput.h"
-
+//#include "Global.h"
 uint32_t 	Sys_Clock;      //e. counter of system ticks //r. счетчик  временной сетки системы
 uint32_t 	Seconds = 0;    //e. seconds from power on //r. число секунд от момента включения питания
 int32_t 	time_1_Sec = DEVICE_SAMPLE_RATE_uks;     //e. pseudosecond timer //r. псевдосекундный таймер
@@ -164,6 +164,9 @@
     LatchPhase =(int)LPC_PWM1->TC;			//e. read moment of latch
     LPC_TIM3->IR = 0x0001;				//e. clear interrupt flag
     num = Sys_Clock;//
+   
+  /*  if(Gyro.EXT_Latch)    Gyro.EXT_Latch=0;
+    else Gyro.EXT_Latch=1;*/
 //	count++;
 //LPC_GPIO2->FIOCLR |= 0x00000080;		// turn off the LED
 }
@@ -298,7 +301,7 @@
     return ;
 }
 
-__irq void TIMER0_IRQHandler()
+/*__irq void TIMER0_IRQHandler()
 {
     int val = LPC_TIM0->IR;
     LPC_TIM0->IR |= 3;
@@ -320,7 +323,7 @@
         return;
     }
     return;
-}
+}*/
 
 /******************************************************************************
 ** Function name:		ExtLatch_Init