Browse Source

STEVAL_3DP001V1: Easier Serial2 (for WIFI interface) (#16599)

pull/1/head
Bob Kuhn 5 years ago
committed by Scott Lahteine
parent
commit
f6468f0af3
  1. 10
      buildroot/share/PlatformIO/variants/STEVAL_F401VE/variant.h

10
buildroot/share/PlatformIO/variants/STEVAL_F401VE/variant.h

@ -51,7 +51,7 @@ extern "C" {
#define PA9 0 //TX
#define PA10 1 //RX
// WIFI
// WIFI (USART2)
#define PD3 2 // CTS
#define PD4 3 // RTS
#define PD5 4 // TX
@ -184,11 +184,19 @@ extern "C" {
// UART Definitions
#define SERIAL_UART_INSTANCE 1 // Connected to ST-Link
//#define SERIAL_UART_INSTANCE 2 // Connected to WIFI
// Default pin used for 'Serial' instance (ex: ST-Link)
// Mandatory for Firmata
#if SERIAL_UART_INSTANCE == 1 // ST-Link & J23
#define PIN_SERIAL_RX PA10
#define PIN_SERIAL_TX PA9
#elif SERIAL_UART_INSTANCE == 2 // WIFI interface
#define PIN_SERIAL2_RX PD6
#define PIN_SERIAL2_TX PD5
#else
#error'Invaqlid setting for SERIAL_UART_INSTANCE'
#endif
// Timer Definitions
#define TIMER_SERVO TIM4 // TIMER_SERVO must be defined in this file

Loading…
Cancel
Save