|
Message
From: cvs at opencores.org<cvs@o...>
Date: Wed Oct 19 15:13:52 CEST 2005
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/05/10 19:15:13 Modified: jop/java/target/src/test/test Hello.java Log: Add a blinking LED Revision Changes Path 1.6 jop/java/target/src/test/test/Hello.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/test/Hello.java.diff?r1=1.5&r2=1.6 (In the diff below, changes in quantity of whitespace are not shown.) Index: Hello.java =================================================================== RCS file: /cvsroot/martin/jop/java/target/src/test/test/Hello.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -b -r1.5 -r1.6 --- Hello.java 25 Aug 2005 09:13:29 -0000 1.5 +++ Hello.java 19 Oct 2005 13:13:48 -0000 1.6 @@ -1,16 +1,18 @@ package test; -import util.Dbg; +import util.*; public class Hello { public static void main(String[] agrgs) { - System.out.println("Hello World from JAVA!"); - - // mark the end of the program - // in emb. systems there is no exit() -// for (;;); -// we don't need this anymore! + System.out.println("Hello World from JOP!"); + for (;;) { + Timer.wd(); + int i = Timer.getTimeoutMs(1000); + while (!Timer.timeout(i)) { + ; + } + } } }
|