further semihosting support
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include "semihosting.h"
|
||||
//#include "semihosting.h"
|
||||
|
||||
#undef putchar
|
||||
int putchar(int ch)
|
||||
@@ -115,11 +115,7 @@ static void vprintfmt(void (*putch)(int, void**), void **putdat, const char *fmt
|
||||
if (ch == '\0')
|
||||
return;
|
||||
fmt++;
|
||||
#if defined(SEMIHOSTING)
|
||||
sh_writec(ch);
|
||||
#else
|
||||
putch(ch, putdat);
|
||||
#endif
|
||||
}
|
||||
fmt++;
|
||||
|
||||
|
Reference in New Issue
Block a user