@@ -56,8 +56,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
5656// USART1 on mega4809 (alternative pins)
5757// Mapped to HWSERIAL0 in Serial library
5858#define HWSERIAL0 (&USART1)
59- //!!BUG in device header file. The RXC and DRE vectors are swapped!!
6059#define HWSERIAL0_DRE_VECTOR (USART1_DRE_vect)
60+ #define HWSERIAL0_DRE_VECTOR_NUM (USART1_DRE_vect_num)
6161#define HWSERIAL0_RXC_VECTOR (USART1_RXC_vect)
6262#ifdef REV_A_ENGINEERING_SAMPLE
6363#define PIN_WIRE_HWSERIAL0_RX (12)
@@ -71,8 +71,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
7171// USART3 on mega4809 (alternative pins)
7272// Mapped to HWSERIAL1 in Serial library
7373#define HWSERIAL1 (&USART3)
74- //!!BUG in device header file. The RXC and DRE vectors are swapped!!
7574#define HWSERIAL1_DRE_VECTOR (USART3_DRE_vect)
75+ #define HWSERIAL1_DRE_VECTOR_NUM (USART3_DRE_vect_num)
7676#define HWSERIAL1_RXC_VECTOR (USART3_RXC_vect)
7777#define PIN_WIRE_HWSERIAL1_RX (26)
7878#define PIN_WIRE_HWSERIAL1_TX (27)
@@ -81,8 +81,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
8181// USART0 on mega4809 (alternative pins)
8282// Mapped to HWSERIAL2 in Serial library
8383#define HWSERIAL2 (&USART0)
84- //!!BUG in device header file. The RXC and DRE vectors are swapped!!
8584#define HWSERIAL2_DRE_VECTOR (USART0_DRE_vect)
85+ #define HWSERIAL2_DRE_VECTOR_NUM (USART0_DRE_vect_num)
8686#define HWSERIAL2_RXC_VECTOR (USART0_RXC_vect)
8787#define PIN_WIRE_HWSERIAL2_RX (23)
8888#define PIN_WIRE_HWSERIAL2_TX (24)
0 commit comments