@@ -46,8 +46,8 @@ static const uint8_t MOSI = PIN_SPI_MOSI;
46
46
static const uint8_t MISO = PIN_SPI_MISO ;
47
47
static const uint8_t SCK = PIN_SPI_SCK ;
48
48
49
- #define PIN_WIRE_SDA (18 )
50
- #define PIN_WIRE_SCL (19 )
49
+ #define PIN_WIRE_SDA (20 )
50
+ #define PIN_WIRE_SCL (21 )
51
51
52
52
static const uint8_t SDA = PIN_WIRE_SDA ;
53
53
static const uint8_t SCL = PIN_WIRE_SCL ;
@@ -56,8 +56,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
56
56
// USART1 on mega4809 (alternative pins)
57
57
// Mapped to HWSERIAL0 in Serial library
58
58
#define HWSERIAL0 (&USART1)
59
- //!!BUG in device header file. The RXC and DRE vectors are swapped!!
60
59
#define HWSERIAL0_DRE_VECTOR (USART1_DRE_vect)
60
+ #define HWSERIAL0_DRE_VECTOR_NUM (USART1_DRE_vect_num)
61
61
#define HWSERIAL0_RXC_VECTOR (USART1_RXC_vect)
62
62
#define PIN_WIRE_HWSERIAL0_RX (0)
63
63
#define PIN_WIRE_HWSERIAL0_TX (1)
@@ -66,8 +66,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
66
66
// USART3 on mega4809 (alternative pins)
67
67
// Mapped to HWSERIAL1 in Serial library
68
68
#define HWSERIAL1 (&USART3)
69
- //!!BUG in device header file. The RXC and DRE vectors are swapped!!
70
69
#define HWSERIAL1_DRE_VECTOR (USART3_DRE_vect)
70
+ #define HWSERIAL1_DRE_VECTOR_NUM (USART3_DRE_vect_num)
71
71
#define HWSERIAL1_RXC_VECTOR (USART3_RXC_vect)
72
72
#define PIN_WIRE_HWSERIAL1_RX (26)
73
73
#define PIN_WIRE_HWSERIAL1_TX (27)
@@ -76,8 +76,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
76
76
// USART0 on mega4809 (alternative pins)
77
77
// Mapped to HWSERIAL2 in Serial library
78
78
#define HWSERIAL2 (&USART0)
79
- //!!BUG in device header file. The RXC and DRE vectors are swapped!!
80
79
#define HWSERIAL2_DRE_VECTOR (USART0_DRE_vect)
80
+ #define HWSERIAL2_DRE_VECTOR_NUM (USART0_DRE_vect_num)
81
81
#define HWSERIAL2_RXC_VECTOR (USART0_RXC_vect)
82
82
#define PIN_WIRE_HWSERIAL2_RX (23)
83
83
#define PIN_WIRE_HWSERIAL2_TX (24)
0 commit comments