add snes reset line sniffer and trigger watchdog reset

This commit is contained in:
optixx
2009-08-27 22:05:43 +02:00
parent b375b0d510
commit 4fa167a61d
7 changed files with 22 additions and 11 deletions

View File

@@ -29,7 +29,11 @@
#include "debug.h"
#include "info.h"
#include "sram.h"
extern uint8_t snes_reset_line;
#ifndef OCR1A
#define OCR1A OCR1 // 2313 support
#endif
@@ -52,6 +56,7 @@ uint16_t volatile second; // count seconds
ISR (SIG_OUTPUT_COMPARE1A)
{
#if XTAL % DEBOUNCE // bei rest
OCR1A = 20000000UL / DEBOUNCE - 1; // compare DEBOUNCE - 1 times