Author: quozl Date: Sun Nov 20 23:23:51 2011 New Revision: 2693 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2693
Log: OLPC XO-1.75 - community testers did not know how to use the accelerometer test, so add a test environment directive.
Modified: cpu/arm/olpc/1.75/accelerometer.fth
Modified: cpu/arm/olpc/1.75/accelerometer.fth ============================================================================== --- cpu/arm/olpc/1.75/accelerometer.fth Thu Nov 17 00:11:05 2011 (r2692) +++ cpu/arm/olpc/1.75/accelerometer.fth Sun Nov 20 23:23:51 2011 (r2693) @@ -12,7 +12,7 @@ : ctl1! ( b -- ) h# 20 acc-reg! ; : ctl4! ( b -- ) h# 23 acc-reg! ; : accelerometer-on ( -- ) h# 47 ctl1! ; -: accelerometer-off ( -- ) h# 07 ctl1! ; +: accelerometer-off ( -- ) h# 07 ctl1! ; \ should this be 00? : wext ( b -- n ) dup h# 8000 and if h# ffff0000 or then ; : acceleration@ ( -- x y z ) begin h# 27 acc-reg@ h# 08 and until \ wait for data available @@ -136,6 +136,7 @@
final-test? if accelerometer-off false exit then
+ ." Don't move!" cr lis-selftest ;