![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: MTimer.c
- Revision:
- 203:3a6615de9581
- Parent:
- 197:7a05523bf588
- Child:
- 205:775d54fdf646
--- a/MTimer.c Wed Oct 19 10:55:05 2016 +0000 +++ b/MTimer.c Fri Nov 18 14:06:22 2016 +0000 @@ -23,6 +23,7 @@ { int i,t; if (Event1Hz) { + Gyro.Rate1_Event = 1; Event1Hz--; Time1Hz++; @@ -176,10 +177,12 @@ /////////////////////////////////////////////////////////////////////// __irq void TIMER2_IRQHandler (void) { +LoopOn LPC_TIM2->IR = 1; Global_Time++; if(Time_UART) Time_UART--; Time_vibro++; + VibroOut(); Gyro.VibroOutF=1; Event100K ++; Time500Hz++; @@ -189,7 +192,6 @@ { Time100K = 0; Event1K ++; - } if (Time500Hz > 200) { @@ -202,4 +204,5 @@ Time250Hz -= 400; Event250Hz ++; } +LoopOff } \ No newline at end of file