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

@@ -5,6 +5,8 @@
#include <unistd.h>
#include <sys/types.h>
#include "../../include/tgc-vp/devices/uart.h"
#include "../../env/tgc-vp/platform.h"
#include "platform.h"
#include "stub.h"
#include "weak_under_alias.h"
@@ -15,7 +17,7 @@ int __wrap_puts(const char *s)
#if defined(SEMIHOSTING)
sh_write0(s);
return 0;
#endif
#endif
while (*s != '\0') {
#if defined(BOARD_ehrenberg)
while (uart_get_tx_free(uart)==0) ;