Changeset 2643


Ignore:
Timestamp:
Oct 22, 2011, 12:40:07 PM (4 years ago)
Author:
wmb
Message:

OLPC XO-1.75 - Fixed a name collision with timers-off .

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/mmp2/dramrecal.fth

    r2631 r2643  
    678678
    6796790 value sleep-mask
    680 : screen-off
     680: screen-sleep
    681681   sleep-mask 1 and  if            \ DCON power down
    682682      dcon-freeze
     
    697697   then  \ saves 100 mW
    698698;
    699 : screen-on  ( -- )
     699: screen-wake  ( -- )
    700700   sleep-mask 4 and  0=  if
    701701      wlan-power-on
     
    715715: stdin-idle-off  ['] noop to stdin-idle  ( install-uart-io ) d# 15 disable-interrupt  ;
    716716
    717 : timers-off  ( -- )
     717: timers-sleep  ( -- )
    718718   0 h# 14048 io!    \ Disable interrupts from the tick timer
    719719   7 h# 1407c io!    \ Clear any pending interrupts
    720720   h# f disable-interrupt  \ Block timer interrupt
    721721;
    722 : timers-on ( -- )
     722: timers-wake ( -- )
    723723   1 h# 14048 io!    \ Enable interrupts from the tick timer
    724724   7 h# 1407c io!    \ Clear any pending interrupts
     
    737737   disable-interrupts
    738738   suspend-usb
    739    timers-off
    740 
    741    screen-off
     739   timers-sleep
     740
     741   screen-sleep
    742742   stdin-idle-off
    743743   5 h# 38 mpmu!    \ Use 32 kHz clock instead of VCXO for slow clock
     
    780780   stdin-idle-on
    781781
    782    screen-on
    783    timers-on
     782   screen-wake
     783   timers-wake
    784784   resume-usb
    785785   enable-interrupts
Note: See TracChangeset for help on using the changeset viewer.