![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: MTimer.c
- Revision:
- 207:d1ce992f5d17
- Parent:
- 205:775d54fdf646
- Child:
- 208:19150d2b528f
--- a/MTimer.c Tue Dec 20 14:08:17 2016 +0000 +++ b/MTimer.c Fri Jan 13 08:27:28 2017 +0000 @@ -155,7 +155,7 @@ { ResetCS(ADC); //prepare ADC for sampling SetDAC(DAC); - + Global_Time++; CountV255++; // инкремент счеттчика CountV255 &= 0xff; // ОБРЕЗАНИЕ СЧЕТЧИКА CountV64 = CountV255 & 0x3f; @@ -178,9 +178,9 @@ /////////////////////////прерывание таймера 2////////////////////////// /////////////////////////////////////////////////////////////////////// __irq void TIMER2_IRQHandler (void) -{ +{ LoopOn LPC_TIM2->IR = 1; - Global_Time++; + if(Time_UART) Time_UART--; Time_vibro++; VibroOut();