Changeset 2693


Ignore:
Timestamp:
Nov 20, 2011, 11:23:51 PM (3 years ago)
Author:
quozl
Message:

OLPC XO-1.75 - community testers did not know how to use the accelerometer test, so add a test environment directive.

File:
1 edited

Legend:

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

    r2663 r2693  
    1313: ctl4!  ( b -- )  h# 23 acc-reg!  ; 
    1414: accelerometer-on  ( -- )  h# 47 ctl1!  ; 
    15 : accelerometer-off  ( -- )  h# 07 ctl1!  ; 
     15: accelerometer-off  ( -- )  h# 07 ctl1!  ;  \ should this be 00? 
    1616: wext  ( b -- n )  dup h# 8000 and  if  h# ffff0000 or  then  ; 
    1717: acceleration@  ( -- x y z ) 
     
    137137   final-test?  if  accelerometer-off false  exit  then 
    138138 
     139   ." Don't move!" cr 
    139140   lis-selftest 
    140141; 
Note: See TracChangeset for help on using the changeset viewer.