Skip to content

Commit c6625fd

Browse files
committed
Removed minimal-printf-console-output
1 parent 509df14 commit c6625fd

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

platform/mbed_lib.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@
128128
"help": "Use the MPU if available to fault execution from RAM and writes to ROM. Can be disabled to reduce image size.",
129129
"value": true
130130
},
131-
"minimal-printf-console-output": {
132-
"help": "Console output when using mprintf profile. Options: UART, SWO",
133-
"value": "UART"
134-
},
135131
"minimal-printf-enable-64-bit": {
136132
"help": "Enable printing 64 bit integers when using mprintf profile",
137133
"value": true

platform/source/minimal-printf/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ Minimal printf is configured by the following parameters defined in `platform/mb
3434
{
3535
"name": "platform",
3636
"config": {
37-
"minimal-printf-console-output": {
38-
"help": "Console output when using minimal-printf profile. Options: UART, SWO",
39-
"value": "UART"
40-
},
4137
"minimal-printf-enable-64-bit": {
4238
"help": "Enable printing 64 bit integers when using minimal-printf profile",
4339
"value": true

platform/source/minimal-printf/mbed_printf_implementation.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,12 @@
2626
/***************************/
2727
#if TARGET_LIKE_MBED
2828

29-
#define CONSOLE_OUTPUT_UART 1
30-
#define CONSOLE_OUTPUT_SWO 2
31-
#define mbed_console_concat_(x) CONSOLE_OUTPUT_##x
32-
#define mbed_console_concat(x) mbed_console_concat_(x)
33-
#define CONSOLE_OUTPUT mbed_console_concat(MBED_CONF_PLATFORM_MINIMAL_PRINTF_CONSOLE_OUTPUT)
34-
3529
#if MBED_CONF_PLATFORM_STDIO_CONVERT_NEWLINES
3630
static char mbed_stdio_out_prev = 0;
3731
#endif
3832

39-
#if CONSOLE_OUTPUT == CONSOLE_OUTPUT_UART
40-
41-
#define MBED_INITIALIZE_PRINT(x)
4233
#define MBED_PRINT_CHARACTER(x) { fputc(x, stdout); }
4334

44-
#elif CONSOLE_OUTPUT == CONSOLE_OUTPUT_SWO
45-
46-
#include "hal/itm_api.h"
47-
48-
#define MBED_INITIALIZE_PRINT(x) { mbed_itm_init(); }
49-
#define MBED_PRINT_CHARACTER(x) { mbed_itm_send(ITM_PORT_SWO, x); }
50-
51-
#endif // if CONSOLE_OUTPUT
5235

5336
/***************************/
5437
/* Linux */
@@ -58,7 +41,6 @@ static char mbed_stdio_out_prev = 0;
5841
#define MBED_CONF_PLATFORM_MINIMAL_PRINTF_ENABLE_FLOATING_POINT 1
5942
#define MBED_CONF_PLATFORM_MINIMAL_PRINTF_SET_FLOATING_POINT_MAX_DECIMALS 6
6043
#define MBED_CONF_PLATFORM_MINIMAL_PRINTF_ENABLE_64_BIT 1
61-
#define MBED_INITIALIZE_PRINT(x) { ; }
6244
#define MBED_PRINT_CHARACTER(x) { printf("%c", x); }
6345
#endif
6446

@@ -404,9 +386,6 @@ static void mbed_minimal_formatted_string_string(char *buffer, size_t length, in
404386
*/
405387
int mbed_minimal_formatted_string(char *buffer, size_t length, const char *format, va_list arguments, FILE *stream)
406388
{
407-
/* initialize output if needed */
408-
MBED_INITIALIZE_PRINT();
409-
410389
int result = 0;
411390
bool empty_buffer = false;
412391

0 commit comments

Comments
 (0)