http://superzun.tistory.com/tag/empty_interrupt
AVR Studio4, WIN AVR 에서 예외인터럽트 처리(자꾸 리셋될 때)
WIN AVR GCC는 프로그램 오류를 막기위해 사용자가
지정하지 않은 인터럽트가 발생할 경우 프로그램을 reset한다.
설정되지 않은 인터럽트가 발생했을 경우,
이를 무시하도록하는 명령.
http://blog.naver.com/PostView.nhn?blogId=bjslv&logNo=100116162590&redirect=Dlog&widgetTypeCall=true
EMPTY_INTERRUPT(SIG_INTERRUPT0);
EMPTY_INTERRUPT(SIG_INTERRUPT1);
EMPTY_INTERRUPT(SIG_OUTPUT_COMPARE2);
EMPTY_INTERRUPT(SIG_OVERFLOW2);
EMPTY_INTERRUPT(SIG_INPUT_CAPTURE1);
EMPTY_INTERRUPT(SIG_OUTPUT_COMPARE1A);
EMPTY_INTERRUPT(SIG_OUTPUT_COMPARE1B);
EMPTY_INTERRUPT(SIG_OVERFLOW1);
EMPTY_INTERRUPT(SIG_OVERFLOW0);
EMPTY_INTERRUPT(SIG_SPI);
EMPTY_INTERRUPT(SIG_UART_RECV);
EMPTY_INTERRUPT(SIG_UART_DATA);
EMPTY_INTERRUPT(SIG_UART_TRANS);
EMPTY_INTERRUPT(SIG_ADC);
EMPTY_INTERRUPT(SIG_EEPROM_READY);
EMPTY_INTERRUPT(SIG_COMPARATOR);
EMPTY_INTERRUPT(SIG_2WIRE_SERIAL);
EMPTY_INTERRUPT(SIG_INTERRUPT2);
EMPTY_INTERRUPT(SIG_OUTPUT_COMPARE0);
EMPTY_INTERRUPT(SIG_SPM_READY);
[출처] EMPTY_INTERRUPT(BADISR_vect) |작성자 Askance
[출처] EMPTY_INTERRUPT(BADISR_vect) |작성자 Askance