Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fe7f131

Browse files
author
Bekken, Kristian_saxrud
committedJan 23, 2018
Forgot the changes to pins_arduino.h
1 parent eba45bc commit fe7f131

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎variants/uno2018/pins_arduino.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ static const uint8_t MOSI = PIN_SPI_MOSI;
4646
static const uint8_t MISO = PIN_SPI_MISO;
4747
static const uint8_t SCK = PIN_SPI_SCK;
4848

49-
#define PIN_WIRE_SDA (18)
50-
#define PIN_WIRE_SCL (19)
49+
#define PIN_WIRE_SDA (20)
50+
#define PIN_WIRE_SCL (21)
5151

5252
static const uint8_t SDA = PIN_WIRE_SDA;
5353
static const uint8_t SCL = PIN_WIRE_SCL;
@@ -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
#define PIN_WIRE_HWSERIAL0_RX (0)
6363
#define PIN_WIRE_HWSERIAL0_TX (1)
@@ -66,8 +66,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
6666
// USART3 on mega4809 (alternative pins)
6767
// Mapped to HWSERIAL1 in Serial library
6868
#define HWSERIAL1 (&USART3)
69-
//!!BUG in device header file. The RXC and DRE vectors are swapped!!
7069
#define HWSERIAL1_DRE_VECTOR (USART3_DRE_vect)
70+
#define HWSERIAL1_DRE_VECTOR_NUM (USART3_DRE_vect_num)
7171
#define HWSERIAL1_RXC_VECTOR (USART3_RXC_vect)
7272
#define PIN_WIRE_HWSERIAL1_RX (26)
7373
#define PIN_WIRE_HWSERIAL1_TX (27)
@@ -76,8 +76,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
7676
// USART0 on mega4809 (alternative pins)
7777
// Mapped to HWSERIAL2 in Serial library
7878
#define HWSERIAL2 (&USART0)
79-
//!!BUG in device header file. The RXC and DRE vectors are swapped!!
8079
#define HWSERIAL2_DRE_VECTOR (USART0_DRE_vect)
80+
#define HWSERIAL2_DRE_VECTOR_NUM (USART0_DRE_vect_num)
8181
#define HWSERIAL2_RXC_VECTOR (USART0_RXC_vect)
8282
#define PIN_WIRE_HWSERIAL2_RX (23)
8383
#define PIN_WIRE_HWSERIAL2_TX (24)

0 commit comments

Comments
 (0)
Please sign in to comment.