further semihosting support

This commit is contained in:
gabriel
2024-04-30 08:48:44 +02:00
parent e83f7996bc
commit 9aaf428620
9 changed files with 57 additions and 32 deletions

View File

@@ -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++;