Skip to content

Commit 392e0c2

Browse files
Roy, ElizabethRoy, Elizabeth
Roy, Elizabeth
authored and
Roy, Elizabeth
committed
Changes required for use with EDBG COM port on ATmega4809 Xplained Pro
1 parent ccbc35b commit 392e0c2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Diff for: cores/arduino/wiring.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,10 @@ void init()
392392

393393
/****************************** USART *****************************************/
394394

395-
/* Configure PORTMUX for USARTS */
396-
PORTMUX.USARTROUTEA = (PORTMUX_USART1_ALT1_gc // MAIN
397-
| PORTMUX_USART0_ALT1_gc // SPARE
398-
| PORTMUX_USART3_ALT1_gc); // DEBUG
395+
// /* Configure PORTMUX for USARTS */
396+
// PORTMUX.USARTROUTEA = (PORTMUX_USART1_ALT1_gc // MAIN
397+
// | PORTMUX_USART0_ALT1_gc // SPARE
398+
// | PORTMUX_USART3_ALT1_gc); // DEBUG
399399

400400
/********************* TCB3 for system time tracking **************************/
401401

Diff for: variants/uno2018/pins_arduino.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ static const uint8_t SCL = PIN_WIRE_SCL;
5959
#define HWSERIAL0_DRE_VECTOR (USART1_DRE_vect)
6060
#define HWSERIAL0_DRE_VECTOR_NUM (USART1_DRE_vect_num)
6161
#define HWSERIAL0_RXC_VECTOR (USART1_RXC_vect)
62-
#define PIN_WIRE_HWSERIAL0_RX (0)
63-
#define PIN_WIRE_HWSERIAL0_TX (1)
62+
// #define PIN_WIRE_HWSERIAL0_RX (0)
63+
// #define PIN_WIRE_HWSERIAL0_TX (1)
64+
#define PIN_WIRE_HWSERIAL0_RX (12)
65+
#define PIN_WIRE_HWSERIAL0_TX (11)
6466

6567
// Uno2 Debug USART (not available on headers, only via the EDGB virtual COM port)
6668
// USART3 on mega4809 (alternative pins)

0 commit comments

Comments
 (0)