Changeset 3472


Ignore:
Timestamp:
Dec 6, 2012, 5:50:29 AM (23 months ago)
Author:
quozl
Message:

OLPC XO-4 - add EC 16-bit battery status command so that cooling bit can be displayed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dev/olpc/kb3700/eccmdcom.fth

    r2212 r3472  
    88: bat-temp@      ( -- w )  h# 13 ec-cmd-w@  ; 
    99: ambient-temp@  ( -- w )  h# 14 ec-cmd-w@  ; 
    10 : bat-status@    ( -- b )  h# 15 ec-cmd-b@  ; 
     10: bat-status8@   ( -- b )  h# 15 ec-cmd-b@  ; 
    1111: bat-soc@       ( -- b )  h# 16 ec-cmd-b@  ; 
    1212 
     
    2424: mppt-on        ( -- )    h# 41 ec-cmd  ; 
    2525: vin@           ( -- b )  h# 42 ec-cmd-w@  ; 
     26: bat-status16@  ( -- w )  h# 70 ec-cmd-w@  ; 
     27 
     28defer bat-status@ 
     29' bat-status8@  is bat-status@ 
     30 
     31[ifdef] olpc-xo4 
     32' bat-status16@  is bat-status@ 
     33[then] 
     34 
    2635 
    2736\ LICENSE_BEGIN 
Note: See TracChangeset for help on using the changeset viewer.