37 #if defined(HAVE_HWSERIAL0) 39 #if defined(USART_RX_vect) 41 #elif defined(USART0_RX_vect) 43 #elif defined(USART_RXC_vect) 46 #error "Don't know what the Data Received vector is called for Serial" 49 Serial._rx_complete_irq();
52 #if defined(UART0_UDRE_vect) 54 #elif defined(UART_UDRE_vect) 56 #elif defined(USART0_UDRE_vect) 58 #elif defined(USART_UDRE_vect) 61 #error "Don't know what the Data Register Empty vector is called for Serial" 64 Serial._tx_udr_empty_irq();
67 #if defined(UBRRH) && defined(UBRRL) 68 HardwareSerial Serial(&UBRRH, &UBRRL, &UCSRA, &UCSRB, &UCSRC, &UDR);
70 HardwareSerial Serial(&UBRR0H, &UBRR0L, &UCSR0A, &UCSR0B, &UCSR0C, &UDR0);
75 bool Serial0_available() {
76 return Serial.available();
79 #endif // HAVE_HWSERIAL0