mirror of
https://github.com/opentx/opentx.git
synced 2025-07-20 06:45:10 +03:00
PXX compiles on V4
This commit is contained in:
parent
50b6a95fee
commit
176ee13455
1 changed files with 5 additions and 0 deletions
|
@ -573,11 +573,16 @@ void setupPulses()
|
|||
TCNT1 = 0 ;
|
||||
OCR1B = 6000 ; // Next frame starts in 3 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
|
||||
TIFR = 0x3C ;
|
||||
ETIFR = 0x3F ;
|
||||
TIMSK |= (1<<OCIE1B) ; // Enable COMPB
|
||||
ETIMSK |= (1<<OCIE1C); // Enable COMPC
|
||||
#endif
|
||||
TCCR1A = 0;
|
||||
TCCR1B = (2<<CS10); //ICNC3 16MHz / 8
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue