Changeset 2364


Ignore:
Timestamp:
Jul 14, 2011, 9:32:36 AM (3 years ago)
Author:
wmb
Message:

OLPC XO-1.75 - Double-probe the USB the first time with a little delay in-between, thus giving devices behind the hub a bit of wakeup time. In particular, this helps with USB barcode scanners.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/1.75/usb.fth

    r2233 r2364  
    5454; 
    5555 
     56true value first-usb-probe? 
     57: (silent-probe-usb)  ( -- )  " /" ['] (probe-usb2) scan-subtree  ; 
    5658: silent-probe-usb  ( -- ) 
    57    " /" ['] (probe-usb2) scan-subtree 
     59   (silent-probe-usb) 
    5860   report-disk report-net report-keyboard 
    5961; 
    6062: probe-usb  ( -- ) 
     63   first-usb-probe?  if 
     64      false to first-usb-probe? 
     65      \ Initial probe to awaken the hub 
     66      (silent-probe-usb) 
     67      \ A little delay to let slow devices like USB scanner wake up 
     68      d# 150 ms 
     69   then 
    6170   silent-probe-usb 
    6271 
Note: See TracChangeset for help on using the changeset viewer.