Minor cleanup: reindent, use _BV().

This commit is contained in:
root
2013-08-26 17:44:24 +00:00
parent 75d3cae798
commit 32cda6dc2c
+2 -2
View File
@@ -232,10 +232,10 @@ void LedSign::Init(uint8_t mode)
// Then start the display
#if defined (__AVR_ATmega168__) || defined (__AVR_ATmega48__) || defined (__AVR_ATmega88__) || defined (__AVR_ATmega328P__) || defined (__AVR_ATmega1280__) || defined (__AVR_ATmega2560__)
TIMSK2 |= (1<<TOIE2);
TIMSK2 |= _BV(TOIE2);
TCCR2B = fastPrescaler.tccr2;
#elif defined (__AVR_ATmega8__) || defined (__AVR_ATmega128__)
TIMSK |= (1<<TOIE2);
TIMSK |= _BV(TOIE2);
TCCR2 = fastPrescaler.tccr2;
#endif
TCNT2 = 255; // interrupt ASAP