We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 526e731 commit efea142Copy full SHA for efea142
hal/common/mbed_board.c
@@ -21,11 +21,6 @@
21
#include "critical.h"
22
#include "serial_api.h"
23
24
-#if DEVICE_SERIAL
25
-extern int stdio_uart_inited;
26
-extern serial_t stdio_uart;
27
-#endif
28
-
29
WEAK void mbed_die(void) {
30
#if !defined (NRF51_H) && !defined(TARGET_EFM32)
31
core_util_critical_section_enter();
@@ -79,11 +74,8 @@ void mbed_error_vfprintf(const char * format, va_list arg) {
79
74
char buffer[128];
80
75
int size = vsprintf(buffer, format, arg);
81
76
if (size > 0) {
82
- if (!stdio_uart_inited) {
83
- serial_init(&stdio_uart, STDIO_UART_TX, STDIO_UART_RX);
84
- }
85
77
for (int i = 0; i < size; i++) {
86
- serial_putc(&stdio_uart, buffer[i]);
78
+ putc(buffer[i], stdout);
87
}
88
89
core_util_critical_section_exit();
0 commit comments