You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.8 KiB
44 lines
1.8 KiB
#include "stdafx.h"
|
|
|
|
/*
|
|
#define Reset() RSTSRC = 0x10
|
|
|
|
//BYTE code flash_space[0x100] _at_ 0x0000;
|
|
|
|
void ISR_INT0() interrupt 0 { Reset(); } // External Interrupt 0 (/INT0) 0x0003
|
|
void ISR_Timer0() interrupt 1 { Reset(); } // Timer 0 Overflow 0x000B
|
|
void ISR_INT1() interrupt 2 { Reset(); } // External Interrupt 1 (/INT1) 0x0013
|
|
void ISR_Timer1() interrupt 3 { Reset(); } // Timer 1 Overflow 0x001B
|
|
void ISR_UART0() interrupt 4 { Reset(); } // UART0 0x0023
|
|
void ISR_Timer2() interrupt 5 { Reset(); } // Timer 2 0x002B
|
|
void ISR_SPI() interrupt 6 { Reset(); } // Serial Peripheral Interface 0x0033
|
|
void ISR_SMBus() interrupt 7 { Reset(); } // SMBus Interface 0x003B
|
|
void ISR_ADC0_WC() interrupt 8 { Reset(); } // ADC0 Window Comparator 0x0043
|
|
void ISR_PCA0() interrupt 9 { Reset(); } // PCA 0 0x004B
|
|
void ISR_Comparator0_FE() interrupt 10 { Reset(); } // Comparator 0 Falling Edge 0x0053
|
|
void ISR_Comparator0_RE() interrupt 11 { Reset(); } // Comparator 0 Rising Edge 0x005B
|
|
void ISR_Comparator1_FE() interrupt 12 { Reset(); } // Comparator 1 Falling Edge 0x0063
|
|
void ISR_Comparator1_RE() interrupt 13 { Reset(); } // Comparator 1 Rising Edge 0x006B
|
|
void ISR_Timer3() interrupt 14 { Reset(); } // Timer 3 0x0073
|
|
void ISR_ADC0_EOC() interrupt 15 { Reset(); } // ADC0 End of Conversion 0x007B
|
|
void ISR_Timer4() interrupt 16 { Reset(); } // Timer 4 0x0083
|
|
void ISR_ADC1_WC() interrupt 17 { Reset(); } // ADC2 Window Comparator 0x008B
|
|
void ISR_ADC1_EOC() interrupt 18 { Reset(); } // ADC2 End of Conversion 0x0093
|
|
void ISR_Reserved() interrupt 19 { Reset(); } // RESERVED 0x009B
|
|
void ISR_UART1() interrupt 20 { Reset(); } // UART1 0x00A3
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|