Changeset 3413


Ignore:
Timestamp:
Nov 3, 2012, 12:17:39 AM (2 years ago)
Author:
quozl
Message:

OLPC XO-4 - touchscreen, as of firmware 0.0.0.7, the boot complete message communicates if the IR PCB is not attached

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/nn-touchscreen.fth

    r3405 r3413  
    111111
    112112
    113 : read-boot-complete  ( -- )  h# 07 d# 0 anticipate  ;
     113: read-boot-complete  ( -- )
     114   0 pbuf 2+ c!
     115   h# 07 d# 0 anticipate
     116   pbuf 2+ c@ h# 07 <> abort" bad response"
     117   pbuf 3 + c@  h# e0 = abort" missing IR PCB"
     118;
    114119
    115120: read-version
     
    161166      then
    162167   then
    163    ['] read-boot-complete  catch  if
    164       ." no response on bus" cr
     168   ['] read-boot-complete  catch  ?dup  if
     169      .error
     170      ." failed to boot" cr
    165171      pbuf-free  false  exit
    166172   then
    167    ['] configure  catch  if
     173   ['] configure  catch  ?dup  if
     174      .error
    168175      ." failed to configure" cr
    169176      pbuf-free  false  exit
Note: See TracChangeset for help on using the changeset viewer.