Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hal/common/retarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,11 @@ extern "C" void exit(int return_code) {
#endif

#if DEVICE_STDIO_MESSAGES
#if MBED_CONF_CORE_STDIO_FLUSH_AT_EXIT
fflush(stdout);
fflush(stderr);
#endif
#endif

#if DEVICE_SEMIHOST
if (mbed_interface_connected()) {
Expand Down
5 changes: 5 additions & 0 deletions mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"stdio-baud-rate": {
"help": "Baud rate for stdio",
"value": 9600
},

"stdio-flush-at-exit": {
"help": "Enable or disable the flush of standard I/O's at exit.",
"value": true
}
}
}