|
|
@ -37,7 +37,7 @@ |
|
|
|
#if defined (__AVR_ATmega644P__) || defined (__AVR_ATmega644__) |
|
|
|
/* more ifdef magic :-( */ |
|
|
|
#define OCR0 OCR0A |
|
|
|
#define SIG_OUTPUT_COMPARE0 SIG_OUTPUT_COMPARE0A |
|
|
|
#define TIMER0_COMP_vect TIMER0_COMPA_vect |
|
|
|
#endif |
|
|
|
|
|
|
|
// buffer which holds the currently shown frame
|
|
|
@ -94,7 +94,7 @@ static void rowshow(unsigned char row, unsigned char plane) { |
|
|
|
|
|
|
|
// depending on the plane this interrupt gets triggered at 50 kHz, 31.25 kHz or
|
|
|
|
// 12.5 kHz
|
|
|
|
SIGNAL(SIG_OUTPUT_COMPARE0) { |
|
|
|
ISR(TIMER0_COMP_vect) { |
|
|
|
static unsigned char plane = 0; |
|
|
|
static unsigned char row = 0; |
|
|
|
|
|
|
|