1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-20 23:05:12 +03:00

PXX compiles on V4

This commit is contained in:
bsongis 2012-05-08 19:29:43 +00:00
parent 50b6a95fee
commit 176ee13455

View file

@ -573,11 +573,16 @@ void setupPulses()
TCNT1 = 0 ; TCNT1 = 0 ;
OCR1B = 6000 ; // Next frame starts in 3 mS OCR1B = 6000 ; // Next frame starts in 3 mS
OCR1C = 4000 ; // Next frame setup in 2 mS OCR1C = 4000 ; // Next frame setup in 2 mS
#if defined(PCBV4)
TIMSK1 &= ~0x3C; // All interrupts off
TIFR1 = 0x2F;
#else
TIMSK &= ~0x3C; // All interrupts off TIMSK &= ~0x3C; // All interrupts off
TIFR = 0x3C ; TIFR = 0x3C ;
ETIFR = 0x3F ; ETIFR = 0x3F ;
TIMSK |= (1<<OCIE1B) ; // Enable COMPB TIMSK |= (1<<OCIE1B) ; // Enable COMPB
ETIMSK |= (1<<OCIE1C); // Enable COMPC ETIMSK |= (1<<OCIE1C); // Enable COMPC
#endif
TCCR1A = 0; TCCR1A = 0;
TCCR1B = (2<<CS10); //ICNC3 16MHz / 8 TCCR1B = (2<<CS10); //ICNC3 16MHz / 8
break; break;