|
Message
From: cvs at opencores.org<cvs@o...>
Date: Wed May 28 17:03:03 CEST 2008
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/08/05 28:17:03 Modified: jop/java/target/src/common/util Dbg.java Log: no message Revision Changes Path 1.5 jop/java/target/src/common/util/Dbg.java http://www.opencores.org/cvsweb.shtml/jop/java/target/src/common/util/Dbg.java.diff?r1=1.4&r2=1.5 (In the diff below, changes in quantity of whitespace are not shown.) Index: Dbg.java =================================================================== RCS file: /cvsroot/martin/jop/java/target/src/common/util/Dbg.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- Dbg.java 27 Mar 2008 20:07:45 -0000 1.4 +++ Dbg.java 28 May 2008 15:03:03 -0000 1.5 @@ -22,6 +22,7 @@ /** * serial output for debug on uart 1. +* */ public abstract class Dbg { @@ -32,35 +33,26 @@ private static Dbg st; private static final int MAX_TMP = 32; - private static int[] tmp; // a generic buffer + private static int[] tmp = new int[MAX_TMP]; // a generic buffer /** init serial or UDP Debugging */ public static void init() { - if (st==null) { - tmp = new int[MAX_TMP]; st = new DbgUdp(); } - } /** force serial Debugging */ public static void initSer() { - if (st==null) { - tmp = new int[MAX_TMP]; st = new DbgSerial(); } - } /** force serial Debugging with waiting */ public static void initSerWait() { - if (st==null) { - tmp = new int[MAX_TMP]; st = new DbgSerial(true); } - } public static void wr(int c) { st.dbgWr(c); } public static void lf() { st.dbgWr('\r'); st.dbgWr('\n'); }
|
 |