deep

a Cross Development Platform for Java

User Tools

Site Tools


runtime_library:drivers:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
runtime_library:drivers:start [2015/04/20 16:21]
ursgraf [mpc5200]
runtime_library:drivers:start [2016/02/25 13:33] (current)
Line 16: Line 16:
 <code java> <code java>
   // 1) Initialize SCI2 (9600 Bd, 8N1)   // 1) Initialize SCI2 (9600 Bd, 8N1)
-  ​SCI2.start(9600, ​SCI2.NO_PARITY, (short)8);+  ​SCI sci2 = SCI.getInstance(SCI.pSCI2);​ 
 +  sci2.start(9600, ​SCI.NO_PARITY, (short)8);
   // 2) Use SCI2 for stdout   // 2) Use SCI2 for stdout
-  System.out = new PrintStream(SCI2.out);+  System.out = new PrintStream(sci2.out);
   // 3) Redirect stderr to stdout (optional)   // 3) Redirect stderr to stdout (optional)
   System.err = System.out;   System.err = System.out;
runtime_library/drivers/start.txt · Last modified: 2016/02/25 13:33 (external edit)