Changeset 3575


Ignore:
Timestamp:
Feb 27, 2013, 4:25:20 AM (3 years ago)
Author:
quozl
Message:

OLPC XO-1 - backport serial terminal, without logging, tested without r3569 (breaks build).

Location:
cpu/x86/pc/olpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpu/x86/pc/olpc/fw.bth

    r3545 r3575  
    658658fload ${BP}/cpu/x86/pc/olpc/charge.fth     \ Fancy battery charge logger
    659659fload ${BP}/cpu/x86/pc/olpc/diskspeed.fth  \ Mass storage speed test
     660fload ${BP}/cpu/x86/pc/olpc/terminal.fth   \ Serial terminal emulator
    660661fload ${BP}/cpu/x86/pc/olpc/apt.fth        \ Common developer utilities
    661662
  • cpu/x86/pc/olpc/terminal.fth

    r3568 r3575  
    200200
    201201: usb-open  ( -- )
    202    " /usb/serial" open-dev dup 0= abort" can't open USB serial adapter"
    203    to serial-ih
     202   " /usb/serial" open-dev ?dup if  to serial-ih  exit  then
     203[ifdef] olpc-cl1
     204   " /usb@f,4/serial" open-dev ?dup if  to serial-ih  exit  then
     205   " /usb@f,5/serial" open-dev ?dup if  to serial-ih  exit  then
     206[then]
     207   true abort" can't open USB serial adapter"
    204208;
    205209
     
    314318: serial  serial{  {serial}  }serial  ;
    315319
     320[ifdef] log-ih
    316321: serial-log  ( "filename" -- )
    317322   serial{
     
    323328   }serial
    324329;
     330[then]
    325331
    326332: use-uart  use-uart  ;
Note: See TracChangeset for help on using the changeset viewer.