Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit edbf264

Browse files
committed
fixed Rev 3 pin definition issue
1 parent 3cf2404 commit edbf264

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

variants/otto/otto.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ extern const stm32_pin_info PIN_MAP[GPIO_PINS] = {
165165
{GPIOG, 9, NULL, 0, AFx, NULL, ADCx}, // PG9: D15 - - - - USART6_RX (Serial3) -
166166
{GPIOD, 5, NULL, 0, AFx, NULL, ADCx}, // PD5: D16 - - - - USART2_TX (Serial2) -
167167
{GPIOD, 6, NULL, 0, AFx, NULL, ADCx}, // PD6: D17 - - - - USART2_RX (Serial2) -
168-
{GPIOB, 10, TIMER2, 3, 1, NULL, ADCx}, // PB10: D18 - - TIM2_CH3 - - USART3_TX (Serial3) -
169-
{GPIOB, 11, TIMER2, 4, 1, NULL, ADCx}, // PB11: D19 - - TIM2_CH4 - - USART3_RX (Serial3) -
168+
{GPIOB, 10, TIMER2, 3, 1, NULL, ADCx}, // PB10: D18 - - TIM2_CH3 - - USART3_TX (Serial1) -
169+
{GPIOB, 11, TIMER2, 4, 1, NULL, ADCx}, // PB11: D19 - - TIM2_CH4 - - USART3_RX (Serial1) -
170170
{GPIOH, 5, NULL, 0, AFx, NULL, ADCx}, // PH5: D20 - - - - I2C2_SDA -
171171
{GPIOH, 4, NULL, 0, AFx, NULL, ADCx}, // PH4: D21 - - - - I2C2_SCL -
172172
// D22...D53

variants/otto/otto.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,22 +173,24 @@
173173
#define TX1_PIN D18
174174
#define RX2_PIN D17
175175
#define TX2_PIN D16
176-
#define RX3_PIN D14
177-
#define TX3_PIN D15
176+
#define RX3_PIN D15
177+
#define TX3_PIN D14
178178

179179
// WIFI POWER PIN
180180
#define WIFI_PWR D75
181181

182182
// USB POWER PIN
183183
#define USB_PWR D76
184184

185+
// LCD CONTROL
186+
#define LCD_BL D77
187+
185188
// MIC SEL
186-
#define MIC_SEL D77
189+
#define MIC_SEL D78
187190
#define CODEC 0
188191
#define MCU 1
189192

190-
// LCD CONTROL
191-
#define LCD_BL D78
193+
192194

193195

194196
enum {

0 commit comments

Comments
 (0)