|
30 | 30 | #include "platform/mbed_atomic.h" |
31 | 31 | #include "platform/mbed_critical.h" |
32 | 32 | #include "platform/mbed_poll.h" |
33 | | -#include "drivers/UARTSerial.h" |
| 33 | +#include "drivers/BufferedSerial.h" |
34 | 34 | #include "hal/us_ticker_api.h" |
35 | 35 | #include "hal/lp_ticker_api.h" |
36 | 36 | #include "hal/static_pinmap.h" |
@@ -150,7 +150,7 @@ extern serial_t stdio_uart; |
150 | 150 | /* Private FileHandle to implement backwards-compatible functionality of |
151 | 151 | * direct HAL serial access for default stdin/stdout/stderr. |
152 | 152 | * This is not a particularly well-behaved FileHandle for a stream, which |
153 | | - * is why it's not public. People should be using UARTSerial. |
| 153 | + * is why it's not public. People should be using BufferedSerial. |
154 | 154 | */ |
155 | 155 | class DirectSerial : public FileHandle { |
156 | 156 | public: |
@@ -337,7 +337,7 @@ static FileHandle *default_console() |
337 | 337 |
|
338 | 338 | # if MBED_CONF_PLATFORM_STDIO_BUFFERED_SERIAL |
339 | 339 | static const serial_pinmap_t console_pinmap = get_uart_pinmap(STDIO_UART_TX, STDIO_UART_RX); |
340 | | - static UARTSerial console(console_pinmap, MBED_CONF_PLATFORM_STDIO_BAUD_RATE); |
| 340 | + static BufferedSerial console(console_pinmap, MBED_CONF_PLATFORM_STDIO_BAUD_RATE); |
341 | 341 | # if CONSOLE_FLOWCONTROL == CONSOLE_FLOWCONTROL_RTS |
342 | 342 | static const serial_fc_pinmap_t fc_pinmap = get_uart_fc_pinmap(STDIO_UART_RTS, NC); |
343 | 343 | console.serial_set_flow_control(SerialBase::RTS, fc_pinmap); |
|
0 commit comments