LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Wed May 28 17:03:03 CEST 2008
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    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'); }



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.