File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,18 @@ typedef enum {
227
227
D14 = PB_9 ,
228
228
D15 = PB_8 ,
229
229
230
+ // STDIO for console print
231
+ #ifdef MBED_CONF_TARGET_STDIO_UART_TX
232
+ STDIO_UART_TX = MBED_CONF_TARGET_STDIO_UART_TX ,
233
+ #else
234
+ STDIO_UART_TX = PD_8 ,
235
+ #endif
236
+ #ifdef MBED_CONF_TARGET_STDIO_UART_RX
237
+ STDIO_UART_RX = MBED_CONF_TARGET_STDIO_UART_RX ,
238
+ #else
239
+ STDIO_UART_RX = PD_9 ,
240
+ #endif
241
+
230
242
// Generic signals namings
231
243
LED1 = PB_0 ,
232
244
LED2 = PB_7 ,
@@ -235,10 +247,10 @@ typedef enum {
235
247
USER_BUTTON = PC_13 ,
236
248
// Standardized button names
237
249
BUTTON1 = USER_BUTTON ,
238
- SERIAL_TX = PD_8 ,
239
- SERIAL_RX = PD_9 ,
240
- USBTX = SERIAL_TX ,
241
- USBRX = SERIAL_RX ,
250
+ SERIAL_TX = STDIO_UART_TX ,
251
+ SERIAL_RX = STDIO_UART_RX ,
252
+ USBTX = STDIO_UART_TX ,
253
+ USBRX = STDIO_UART_RX ,
242
254
I2C_SCL = D15 ,
243
255
I2C_SDA = D14 ,
244
256
SPI_MOSI = PB_5 , // Conflict between D11 and RMII RX Data Valid (PA7)
@@ -275,10 +287,6 @@ typedef enum {
275
287
NC = (int )0xFFFFFFFF
276
288
} PinName ;
277
289
278
- #define STDIO_UART_TX SERIAL_TX
279
- #define STDIO_UART_RX SERIAL_RX
280
- #define STDIO_UART UART_3
281
-
282
290
#ifdef __cplusplus
283
291
}
284
292
#endif
You can’t perform that action at this time.
0 commit comments