mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
CTK has been changed.
This commit is contained in:
parent
80f858b68b
commit
5d1aaa4fe8
@ -30,7 +30,7 @@
|
||||
*
|
||||
* 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 "libconio.h"
|
||||
#include "libconio_arch-small.h"
|
||||
|
||||
PROCESS(tiny_process, "Tiny Sample");
|
||||
|
||||
@ -53,14 +53,13 @@ PROCESS_THREAD(tiny_process, ev, data)
|
||||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
clrscr();
|
||||
gotoxy(0, 0);
|
||||
clrscr_arch();
|
||||
|
||||
while(1) {
|
||||
etimer_set(&timer, CLOCK_SECOND / 32);
|
||||
PROCESS_WAIT_EVENT();
|
||||
if(etimer_expired(&timer)) {
|
||||
cputs(ch);
|
||||
libputs_arch(ch);
|
||||
ch[0]++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user