Some pulses correction on V4

This commit is contained in:
bsongis
2012-05-30 14:46:51 +00:00
parent 54cf0a40f9
commit 2221cce51a
+3 -3
View File
@@ -717,7 +717,7 @@ void setupPulses()
#if defined(PCBV4)
TIMSK1 &= ~0x3C; // All interrupts off
TIFR1 = 0x2F;
TIMSK1 |= 0x28; // Enable CAPT and COMPB
TIMSK1 |= 0x28; // Enable CAPT and COMPC
#else
TIMSK &= ~0x3C; // All interrupts off
TIFR = 0x3C;
@@ -760,7 +760,7 @@ void setupPulses()
TCNT1 = 0 ;
#if defined(PCBV4)
TIMSK1 &= ~0x3C; // All interrupts off
TIMSK3 &= ~(1<<OCIE1C) ; // COMPC1 off
TIMSK1 &= ~(1<<OCIE1C) ; // COMPC1 off
TIFR1 = 0x2F;
TIMSK1 |= 0x10; // Enable COMPA
#else
@@ -783,7 +783,7 @@ void setupPulses()
TCNT1 = 0 ;
#if defined(PCBV4)
TIMSK1 &= ~0x3C; // All interrupts off
TIMSK3 &= ~(1<<OCIE1C) ; // COMPC1 off
TIMSK1 &= ~(1<<OCIE1C) ; // COMPC1 off
TIFR1 = 0x2F;
#else
TIMSK &= ~0x3C ; // All interrupts off