source:
soft/tp18/correction/main0.c
@
100
Last change on this file since 100 was 25, checked in by , 14 years ago | |
---|---|
File size: 213 bytes |
Rev | Line | |
---|---|---|
[25] | 1 | #include "stdio.h" |
2 | ||
3 | /////////// | |
4 | int main0() | |
5 | { | |
6 | char buf; | |
7 | ||
8 | tty_printf(" TASK 0 : CYCLE COUNT \n"); | |
9 | ||
10 | while (1) { | |
11 | tty_getc_irq(&buf); | |
12 | tty_printf("\n**** cycle = %d \n", proctime()); | |
13 | } | |
14 | return 0; | |
15 | } // end main0 |
Note: See TracBrowser
for help on using the repository browser.