22 lines
354 B
C
22 lines
354 B
C
#include <avr/io.h>
|
|
#include <avr/interrupt.h>
|
|
#include "const.h"
|
|
#include <string.h>
|
|
|
|
volatile uint16_t frame;
|
|
volatile uint16_t line;
|
|
|
|
ISR(INT0_vect, ISR_NAKED) {
|
|
asm("jmp int_vertical_sync");
|
|
}
|
|
ISR(INT1_vect, ISR_NAKED) {
|
|
asm("jmp int_horizontal_sync");
|
|
}
|
|
ISR(TIMER0_COMPA_vect, ISR_NAKED) {
|
|
asm("jmp int_timer_0");
|
|
}
|
|
|
|
void setup_c() {
|
|
}
|
|
|