![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: MTimer.c
- Revision:
- 183:7e200f4d9b16
- Parent:
- 181:0b022246c43c
- Child:
- 188:4c523cc373cc
--- a/MTimer.c Thu Jul 14 14:10:49 2016 +0000 +++ b/MTimer.c Fri Jul 15 14:03:47 2016 +0000 @@ -184,8 +184,9 @@ ////////////////////////////////////////////////////////////////////// /////////////////////////прерывание таймера 1////////////////////////// ////////////////////////////////////////////////////////////////////// -__irq void TIMER1_IRQHandler (void) +__irq void TIMER1_IRQHandler (void)//13.27 kHz { + LoopOn ResetCS(ADC); //prepare ADC for sampling SetDAC(DAC); @@ -202,6 +203,7 @@ SPI_Exchange(); //Чтение ADS_SPI LPC_TIM1->IR = 1; + LoopOff } @@ -214,7 +216,7 @@ /////////////////////////////////////////////////////////////////////// __irq void TIMER2_IRQHandler (void) { - LoopOn + LPC_TIM2->IR = 1; Global_Time++; @@ -226,5 +228,5 @@ Gyro.VibroOutF=1; Event100K ++; - LoopOff + } \ No newline at end of file