Exemple #1
0
  public void run() {

    for (; ; ) {
      Dbg.wr(c);
      waitForNextPeriod();
      /*
      					int ts = Native.rd(Native.IO_US_CNT) + 99000;
      					while (ts-Native.rd(Native.IO_US_CNT)>0)
      						;
      */
    }
  }
Exemple #2
0
  public static void main(String[] args) {

    Dbg.initSer(); // use serial line for debug output

    new Two('a');
    new Two('b');
    new Two('c');

    RtThread.startMission();

    // sleep
    for (; ; ) {
      Dbg.wr('M');
      Timer.wd();
      RtThread.sleepMs(1200);
    }
  }