source: soft/giet_vm/hello/main.c @ 269

Last change on this file since 269 was 254, checked in by alain, 11 years ago

Improving support for Chained Buffer DMA in drivers.c file.

File size: 413 bytes
Line 
1#include "stdio.h"
2
3__attribute__((constructor)) void main()
4{
5        char                byte;
6    unsigned int        proc = giet_procid();
7
8    giet_tty_printf("Starting task HELLO on processor %d at cycle %d\n",
9                    giet_procid(), giet_proctime() );
10 
11        while (1)
12        {
13                giet_tty_printf(" hello from processor %d\n", proc);
14        giet_tty_getc((void*)&byte);
15        if ( byte == 'q' ) giet_exit();
16        }
17} // end main
18
Note: See TracBrowser for help on using the repository browser.