mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
parent
f88c9847ac
commit
b59784d50c
@ -104,7 +104,8 @@ inline void store_char(unsigned char c, ring_buffer *buffer)
|
|||||||
#if !defined(USART0_RX_vect) && defined(USART1_RX_vect)
|
#if !defined(USART0_RX_vect) && defined(USART1_RX_vect)
|
||||||
// do nothing - on the 32u4 the first USART is USART1
|
// do nothing - on the 32u4 the first USART is USART1
|
||||||
#else
|
#else
|
||||||
#if !defined(USART_RX_vect) && !defined(USART0_RX_vect)
|
#if !defined(USART_RX_vect) && !defined(USART0_RX_vect) && \
|
||||||
|
!defined(USART_RXC_vect)
|
||||||
#error "Don't know what the Data Received vector is called for the first UART"
|
#error "Don't know what the Data Received vector is called for the first UART"
|
||||||
#else
|
#else
|
||||||
void serialEvent() __attribute__((weak));
|
void serialEvent() __attribute__((weak));
|
||||||
@ -114,6 +115,8 @@ inline void store_char(unsigned char c, ring_buffer *buffer)
|
|||||||
ISR(USART_RX_vect)
|
ISR(USART_RX_vect)
|
||||||
#elif defined(USART0_RX_vect)
|
#elif defined(USART0_RX_vect)
|
||||||
ISR(USART0_RX_vect)
|
ISR(USART0_RX_vect)
|
||||||
|
#elif defined(USART_RXC_vect)
|
||||||
|
ISR(USART_RXC_vect) // ATmega8
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#if defined(UDR0)
|
#if defined(UDR0)
|
||||||
|
Loading…
Reference in New Issue
Block a user