Enabled ITM for write to stdout
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user