Adding semihosting support for bmsp

This commit is contained in:
gabriel
2024-04-08 14:36:22 +02:00
parent 39ee91af7d
commit e83f7996bc
14 changed files with 175 additions and 7 deletions

View File

@@ -2,9 +2,14 @@
#include <unistd.h>
#include "weak_under_alias.h"
#include "semihosting.h"
int __wrap_isatty(int fd)
{
#if defined(SEMIHOSTING)
int i = sh_istty(fd);
return i;
#endif
if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
return 1;