Enabled ITM for write to stdout

This commit is contained in:
2024-06-22 22:14:08 -03:00
parent d64531618a
commit 5f7a575f2d

View File

@@ -30,6 +30,7 @@
#include <sys/time.h>
#include <sys/times.h>
#include <main.h>
/* Variables */
extern int __io_putchar(int ch) __attribute__((weak));
@@ -84,7 +85,8 @@ __attribute__((weak)) int _write(int file, char *ptr, int len)
for (DataIdx = 0; DataIdx < len; DataIdx++)
{
__io_putchar(*ptr++);
ITM_SendChar(*ptr++);
//__io_putchar(*ptr++);
}
return len;
}