videochargen/main.c

22 lines
354 B
C
Raw Normal View History

#include <avr/io.h>
#include <avr/interrupt.h>
2021-07-03 13:02:01 +00:00
#include "const.h"
#include <string.h>
2021-07-03 13:02:01 +00:00
2021-07-03 13:44:01 +00:00
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");
}
2021-07-03 13:02:01 +00:00
2021-07-03 13:44:01 +00:00
void setup_c() {
}