CTK has been changed.
This commit is contained in:
parent
80f858b68b
commit
5d1aaa4fe8
1 changed files with 4 additions and 5 deletions
|
@ -30,7 +30,7 @@
|
||||||
*
|
*
|
||||||
* Author: Oliver Schmidt <ol.sc@web.de>
|
* Author: Oliver Schmidt <ol.sc@web.de>
|
||||||
*
|
*
|
||||||
* $Id: tinysample.c,v 1.1 2007/09/11 12:12:59 matsutsuka Exp $
|
* $Id: tinysample.c,v 1.2 2007/11/28 09:37:11 matsutsuka Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "libconio.h"
|
#include "libconio_arch-small.h"
|
||||||
|
|
||||||
PROCESS(tiny_process, "Tiny Sample");
|
PROCESS(tiny_process, "Tiny Sample");
|
||||||
|
|
||||||
|
@ -53,14 +53,13 @@ PROCESS_THREAD(tiny_process, ev, data)
|
||||||
|
|
||||||
PROCESS_BEGIN();
|
PROCESS_BEGIN();
|
||||||
|
|
||||||
clrscr();
|
clrscr_arch();
|
||||||
gotoxy(0, 0);
|
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
etimer_set(&timer, CLOCK_SECOND / 32);
|
etimer_set(&timer, CLOCK_SECOND / 32);
|
||||||
PROCESS_WAIT_EVENT();
|
PROCESS_WAIT_EVENT();
|
||||||
if(etimer_expired(&timer)) {
|
if(etimer_expired(&timer)) {
|
||||||
cputs(ch);
|
libputs_arch(ch);
|
||||||
ch[0]++;
|
ch[0]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue