Skip to content

Commit 24ac379

Browse files
authored
Fix Serial bug for Artemis module variant
1 parent 1520adc commit 24ac379

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

variants/SparkFun_Artemis/config/variant.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ const ap3_gpio_pad_t ap3_variant_pinmap[AP3_VARIANT_NUM_PINS] = {
8787
// Uart Definitions
8888
//Serial(instance, RX, TX)
8989
//We default Serial to 22/23 but can be moved to any TX0/RX0 pin
90-
Uart Serial(0, 23, 22); // Declares a Uart object called Serial using instance 0 of Apollo3 UART peripherals with RX on variant pin 23 and TX on pin 24 (note, you specify *pins* not Apollo3 pads. This uses the variant's pin map to determine the Apollo3 pad)
91-
// Uart Serial1(1, 0, 1); // Declares a Uart object called Serial1 using instance 1 of Apollo3 UART peripherals with RX on pin 0 and TX on pin 1 (note, you specify *pins* not Apollo3 pads. This uses the variant's pin map to determine the Apollo3 pad)
90+
Uart Serial(0, 49, 48); // Declares a Uart object called Serial using instance 0 of Apollo3 UART peripherals with RX on variant pin 49 and TX on pin 48 (note, in this variant the pins map directly to pad, so pin === pad when talking about the pure Artemis module)
9291

9392
// Pin aliasing using the const uint8_t approach
9493
//
@@ -143,4 +142,4 @@ Uart Serial(0, 23, 22); // Declares a Uart object called Serial using instance 0
143142
// AP3_ADC_TEMP_PAD, //34 - Not a real pad, ADC_TEMP
144143
// AP3_ADC_DIV3_PAD, //35 - Not a real pad, ADC_DIV3
145144
// AP3_ADC_VSS_PAD, //36 - Not a real pad, ADC_VSS
146-
// };
145+
// };

0 commit comments

Comments
 (0)