Old fashion design for PC-104
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

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #include "stdafx.h"
  2. /*
  3. #define Reset() RSTSRC = 0x10
  4. //BYTE code flash_space[0x100] _at_ 0x0000;
  5. void ISR_INT0() interrupt 0 { Reset(); } // External Interrupt 0 (/INT0) 0x0003
  6. void ISR_Timer0() interrupt 1 { Reset(); } // Timer 0 Overflow 0x000B
  7. void ISR_INT1() interrupt 2 { Reset(); } // External Interrupt 1 (/INT1) 0x0013
  8. void ISR_Timer1() interrupt 3 { Reset(); } // Timer 1 Overflow 0x001B
  9. void ISR_UART0() interrupt 4 { Reset(); } // UART0 0x0023
  10. void ISR_Timer2() interrupt 5 { Reset(); } // Timer 2 0x002B
  11. void ISR_SPI() interrupt 6 { Reset(); } // Serial Peripheral Interface 0x0033
  12. void ISR_SMBus() interrupt 7 { Reset(); } // SMBus Interface 0x003B
  13. void ISR_ADC0_WC() interrupt 8 { Reset(); } // ADC0 Window Comparator 0x0043
  14. void ISR_PCA0() interrupt 9 { Reset(); } // PCA 0 0x004B
  15. void ISR_Comparator0_FE() interrupt 10 { Reset(); } // Comparator 0 Falling Edge 0x0053
  16. void ISR_Comparator0_RE() interrupt 11 { Reset(); } // Comparator 0 Rising Edge 0x005B
  17. void ISR_Comparator1_FE() interrupt 12 { Reset(); } // Comparator 1 Falling Edge 0x0063
  18. void ISR_Comparator1_RE() interrupt 13 { Reset(); } // Comparator 1 Rising Edge 0x006B
  19. void ISR_Timer3() interrupt 14 { Reset(); } // Timer 3 0x0073
  20. void ISR_ADC0_EOC() interrupt 15 { Reset(); } // ADC0 End of Conversion 0x007B
  21. void ISR_Timer4() interrupt 16 { Reset(); } // Timer 4 0x0083
  22. void ISR_ADC1_WC() interrupt 17 { Reset(); } // ADC2 Window Comparator 0x008B
  23. void ISR_ADC1_EOC() interrupt 18 { Reset(); } // ADC2 End of Conversion 0x0093
  24. void ISR_Reserved() interrupt 19 { Reset(); } // RESERVED 0x009B
  25. void ISR_UART1() interrupt 20 { Reset(); } // UART1 0x00A3
  26. */