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.
2 parents 5ef7202 + 9803b62 commit 50c30d3Copy full SHA for 50c30d3
hal/common/retarget.cpp
@@ -609,9 +609,11 @@ extern "C" void exit(int return_code) {
609
#endif
610
611
#if DEVICE_STDIO_MESSAGES
612
+#if MBED_CONF_CORE_STDIO_FLUSH_AT_EXIT
613
fflush(stdout);
614
fflush(stderr);
615
616
+#endif
617
618
#if DEVICE_SEMIHOST
619
if (mbed_interface_connected()) {
mbed_lib.json
@@ -9,6 +9,11 @@
9
"stdio-baud-rate": {
10
"help": "Baud rate for stdio",
11
"value": 9600
12
+ },
13
+
14
+ "stdio-flush-at-exit": {
15
+ "help": "Enable or disable the flush of standard I/O's at exit.",
16
+ "value": true
17
}
18
19
0 commit comments