Skip to content

Commit e8a2736

Browse files
committed
[nanoEvery] Restore Serial pins
1 parent 4e03d35 commit e8a2736

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

variants/nona4809/pins_arduino.h

+10-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ static const uint8_t SCL = PIN_WIRE_SCL;
7676
#define HWSERIAL0_DRE_VECTOR_NUM (USART3_DRE_vect_num)
7777
#define HWSERIAL0_RXC_VECTOR (USART3_RXC_vect)
7878
#define HWSERIAL0_MUX (PORTMUX_USART3_ALT1_gc)
79-
#define PIN_WIRE_HWSERIAL0_RX (26)
80-
#define PIN_WIRE_HWSERIAL0_TX (27)
79+
#define PIN_WIRE_HWSERIAL0_RX (24)
80+
#define PIN_WIRE_HWSERIAL0_TX (25)
8181

8282
#define HWSERIAL2_MUX (PORTMUX_USART0_NONE_gc)
8383
#define HWSERIAL3_MUX (PORTMUX_USART2_NONE_gc)
@@ -167,6 +167,8 @@ const uint8_t PROGMEM digital_pin_to_port[] = {
167167
PD, // 21 PD4/AI4
168168
PA, // 22 PA2/TWI_SDA
169169
PA, // 23 PA3/TWI_SCL
170+
PB, // 24 PB5/USART3_Rx
171+
PB, // 25 PB4/USART3_Tx
170172
};
171173

172174
/* Use this for accessing PINnCTRL register */
@@ -195,6 +197,8 @@ const uint8_t PROGMEM digital_pin_to_bit_position[] = {
195197
PIN4_bp, // 21 PD4/AI4
196198
PIN2_bp, // 22 PA2/TWI_SDA
197199
PIN3_bp, // 23 PA3/TWI_SCL
200+
PIN5_bp, // 24 PB5/USART3_Rx
201+
PIN4_bp, // 25 PB4/USART3_Tx
198202
};
199203

200204
/* Use this for accessing PINnCTRL register */
@@ -223,6 +227,8 @@ const uint8_t PROGMEM digital_pin_to_bit_mask[] = {
223227
PIN4_bm, // 21 PD4/AI4
224228
PIN2_bm, // 22 PA2/TWI_SDA
225229
PIN3_bm, // 23 PA3/TWI_SCL
230+
PIN5_bm, // 24 PB5/USART3_Rx
231+
PIN4_bm, // 25 PB4/USART3_Tx
226232
};
227233

228234
const uint8_t PROGMEM digital_pin_to_timer[] = {
@@ -250,6 +256,8 @@ const uint8_t PROGMEM digital_pin_to_timer[] = {
250256
NOT_ON_TIMER, // 21 PD4/AI4
251257
NOT_ON_TIMER, // 22 PA2/TWI_SDA
252258
NOT_ON_TIMER, // 23 PA3/TWI_SCL
259+
NOT_ON_TIMER, // 24 PB5/USART3_Rx
260+
NOT_ON_TIMER, // 25 PB4/USART3_Tx
253261
};
254262

255263
const uint8_t PROGMEM analog_pin_to_channel[] = {

0 commit comments

Comments
 (0)