Changeset 2977
- Timestamp:
- May 16, 2012 1:03:21 PM (12 months ago)
- File:
-
- 1 edited
-
cpu/arm/olpc/rtc.fth (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/olpc/rtc.fth
r2976 r2977 22 22 headerless 23 23 24 : ?clear 25 h# 3f rtc@ h# 3e rtc@ bwjoin h# 55aa <> if 26 h# 20 8 rtc! \ century 27 h# 20 h# 10 do 0 i rtc! loop \ wipe cmos@ cmos! area 28 h# 55aa wbsplit h# 3e rtc! h# 3f rtc! 29 ." RTC SRAM cleared" cr 30 then 31 ; 32 24 33 headers 25 34 : open ( -- okay ) … … 30 39 \ Ensure that the Clock Halt bit is off 31 40 dup h# 80 and if ( value ) 32 \ Clear century33 h# 20 8 rtc!34 41 \ Turn off Clock Halt 35 42 h# 7f and 0 rtc! ( ) … … 41 48 drop true ( true ) 42 49 then ( okay? ) 50 ?clear 43 51 ; 44 52 : close ( -- )
Note: See TracChangeset
for help on using the changeset viewer.
