source: trunk/libs/newlib/src/libgloss/mn10300/test.c @ 546

Last change on this file since 546 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 472 bytes
RevLine 
[444]1#include <stdio.h>
2
3static void
4send_msg1 (void)
5{
6  static char msg[] = "Hello World\r\n";
7  write(1, msg, strlen (msg));
8}
9
10static void
11send_msg2 (void)
12{
13  static char msg[] = "Goodnight Irene\r\n";
14  write(1, msg, strlen (msg));
15}
16
17static void
18delay (void)
19{
20  int i;
21
22  for (i = 0; i < 1000000; i++)
23    ;
24}
25
26int
27main(int argc, char *argv[])
28{
29  int i, j;
30  for (i = 0; i < 10; i++)
31    {
32      send_msg1 ();
33      delay ();
34      send_msg2 ();
35    }
36  return 0;
37}
38
39
Note: See TracBrowser for help on using the repository browser.