Changeset 3507


Ignore:
Timestamp:
Jan 3, 2013, 11:51:07 PM (23 months ago)
Author:
quozl
Message:

OLPC XO-4 - touchscreen, update version to 0.0.0.10, print version in decimal, rely on CForth for clearing pull-up on TOUCH_HD#, change polarity of TOUCH_HD#, breaks automatic update from version 0.0.0.9 and earlier. #12391

Location:
cpu/arm/olpc
Files:
2 edited

Legend:

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

    r3504 r3507  
    11\ The Neonode touchscreen firmware 
    2 macro: NN_VERSION 0_0_0_9 
     2macro: NN_VERSION 0_0_0_10 
  • cpu/arm/olpc/nn-touchscreen.fth

    r3504 r3507  
    3232: get-version  ( -- version.d )  version#  ; 
    3333 
    34 : (.)'  ( version-segment.w -- )  (.) type  [char] . emit  ; 
     34: (.)'  ( version-segment.w -- ) 
     35   push-decimal  (.)  type  [char] . emit  pop-base 
     36; 
    3537 
    3638: .version  ( version.d -- )  lwsplit (.)' (.)'  lwsplit (.)' (.)'  ; 
     
    7274: no-data?  ( -- no-data? )  touch-int-gpio# gpio-pin@  ; 
    7375: absent?  ( -- flag ) 
    74    touch-hd-gpio# af@  +pull-dn  touch-hd-gpio# af! 
    75    1 ms 
    76    touch-hd-gpio# gpio-pin@ 
    77    touch-hd-gpio# af@  0 +pull-dn invert and  touch-hd-gpio# af! 
     76   board-revision h# 4b20  >=  if 
     77      touch-hd-gpio# gpio-pin@  0= 
     78   else 
     79      false 
     80   then 
    7881; 
    7982 
Note: See TracChangeset for help on using the changeset viewer.