Remove duplicate code block

This commit is contained in:
David Kopf 2011-08-05 17:34:38 -04:00
parent c9b19ce655
commit b70d2b3163

View file

@ -224,19 +224,9 @@ ISR(USART_RX_vect)
rs232_ports[RS232_PORT_0].input_handler(c); rs232_ports[RS232_PORT_0].input_handler(c);
} }
} }
#elif defined (__AVR_AT90USB1287__) #elif defined (__AVR_AT90USB1287__)
static rs232_t rs232_ports[1] = { /*---------------------------------------------------------------------*/
{ // UART1
&UDR1,
&UBRR1H,
&UBRR1L,
&UCSR1B,
&UCSR1C,
0,
NULL
}
};
/*---------------------------------------------------------------------------*/
ISR(USART1_TX_vect) ISR(USART1_TX_vect)
{ {
rs232_ports[RS232_PORT_0].txwait = 0; rs232_ports[RS232_PORT_0].txwait = 0;
@ -254,7 +244,7 @@ ISR(USART1_RX_vect)
} }
} }
#else #else
#error Please define the UART registers for your MCU! #error Please define the interrupt vectors for your MCU!
#endif #endif
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/