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

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

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

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