From 334ff322f6a6ab7acdf8fbe1cd5e40b51f127f80 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Tue, 9 Dec 2014 16:29:59 +0000 Subject: [PATCH] SPARKY - Update UART2 configuration. UART2 RX working using SumD. --- src/main/target/SPARKY/target.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/target/SPARKY/target.h b/src/main/target/SPARKY/target.h index aa2765d038..29b525966f 100644 --- a/src/main/target/SPARKY/target.h +++ b/src/main/target/SPARKY/target.h @@ -52,6 +52,13 @@ #define UART1_TX_PINSOURCE GPIO_PinSource6 #define UART1_RX_PINSOURCE GPIO_PinSource7 +#define UART2_TX_PIN GPIO_Pin_2 // PA2 - Clashes with PWM6 input. +#define UART2_RX_PIN GPIO_Pin_3 // PA3 +#define UART2_GPIO GPIOA +#define UART2_GPIO_AF GPIO_AF_7 +#define UART2_TX_PINSOURCE GPIO_PinSource2 +#define UART2_RX_PINSOURCE GPIO_PinSource3 + // Note: PA5 and PA0 are N/C on the sparky - potentially use for ADC or LED STRIP? #define USE_I2C @@ -71,3 +78,5 @@ #define SENSORS_SET (SENSOR_ACC) +#define SERIAL_RX +