Skip to content

Commit 79f124d

Browse files
committed
examples/simple: add build time to itm output
1 parent 51bcc85 commit 79f124d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/simple/src/main.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ int main( void )
6666
_sieve();
6767
ITM_Send8(0,a);
6868
}
69+
ITM_Send8(0,'\r');
70+
ITM_Send8(0,'\n');
71+
ITM_SendString(0, __DATE__);
72+
ITM_Send8(0,'\r');
73+
ITM_Send8(0,'\n');
74+
ITM_SendString(0, __TIME__);
75+
ITM_Send8(0,'\r');
76+
ITM_Send8(0,'\n');
6977
}
7078

7179
/* should not reach this statement */

0 commit comments

Comments
 (0)