Skip to content

Commit 0dff985

Browse files
committed
fixed USART2 pin naming (not USART3)
1 parent 90ef7f1 commit 0dff985

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sam/1.0.4/variants/geolink_opentracker/variant.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,10 @@ void init( void )
352352
g_APinDescription[PINS_USART1].ulPin,
353353
g_APinDescription[PINS_USART1].ulPinConfiguration);
354354
PIO_Configure(
355-
g_APinDescription[PINS_USART3].pPort,
356-
g_APinDescription[PINS_USART3].ulPinType,
357-
g_APinDescription[PINS_USART3].ulPin,
358-
g_APinDescription[PINS_USART3].ulPinConfiguration);
355+
g_APinDescription[PINS_USART2].pPort,
356+
g_APinDescription[PINS_USART2].ulPinType,
357+
g_APinDescription[PINS_USART2].ulPin,
358+
g_APinDescription[PINS_USART2].ulPinConfiguration);
359359

360360
// Initialize USB pins
361361
PIO_Configure(

sam/1.0.4/variants/geolink_opentracker/variant.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static const uint8_t SCK = PIN_SPI_SCK;
137137
// Serial2
138138
#define PINS_USART1 (43u)
139139
// Serial3
140-
#define PINS_USART3 (44u)
140+
#define PINS_USART2 (44u)
141141

142142
/*
143143
* USB Interfaces

0 commit comments

Comments
 (0)