Author: quozl Date: Thu Aug 30 05:04:15 2012 New Revision: 3250 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3250
Log: OLPC XO-4 - Neonode, first pass at showing touch events graphically, multitouch not supported, X coordinate reflected due to a newly detected layout error that is not expected to be fixed. Not yet tested on IR PCB revision B.
Modified: cpu/arm/olpc/nn-touchscreen.fth
Modified: cpu/arm/olpc/nn-touchscreen.fth ============================================================================== --- cpu/arm/olpc/nn-touchscreen.fth Thu Aug 30 01:33:01 2012 (r3249) +++ cpu/arm/olpc/nn-touchscreen.fth Thu Aug 30 05:04:15 2012 (r3250) @@ -133,8 +133,10 @@
: stream-poll? ( -- false | x y buttons true ) in? if + \ FIXME: only handles one subpacket pbuf 2+ c@ h# 04 = if - pbuf 4 + w@ pbuf 6 + w@ ( x y ) + screen-w pbuf 4 + w@ - ( x ) + pbuf 6 + w@ ( x y ) pbuf 8 + c@ 3 and 0= ( x y down? ) true ( x y buttons true ) exit @@ -521,6 +523,16 @@ key drop ;
+: scribble + cursor-off + background + begin + stream-poll? if drop dot then + key? until + cursor-on + \ FIXME: tune the event frequency with set scanning frequency request +; + : selftest ( -- error? )
0 to faults @@ -569,8 +581,7 @@ then
[ifdef] nn-ir-pcb-rev-b - \ FIXME: graphically show data on screen until key - \ ... waiting for revision B of IR PCB + scribble [else] ." dumping events from touchscreen controller, press a key to stop" cr dump-events
openfirmware@openfirmware.info