Changeset 2702
- Timestamp:
- Nov 24, 2011 7:38:35 AM (19 months ago)
- Location:
- cpu
- Files:
-
- 4 edited
-
arm/olpc/1.75/ecflash.fth (modified) (1 diff)
-
arm/olpc/1.75/edi.fth (modified) (2 diffs)
-
arm/olpc/1.75/fw.bth (modified) (1 diff)
-
x86/pc/olpc/gui.fth (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cpu/arm/olpc/1.75/ecflash.fth
r2502 r2702 102 102 2dup load-base swap move ( adr len ) 103 103 free-mem ( ) 104 ['] ?enough-power catch ?dup if ( error ) 105 .error 106 ." Skipping EC reflash" cr 107 else 108 ." Updating EC code" cr 109 reflash-ec 110 then 104 ." Updating EC code" cr 105 reflash-ec 111 106 then 112 107 then -
cpu/arm/olpc/1.75/edi.fth
r2502 r2702 15 15 16 16 d# 128 constant /flash-page 17 defer edi-progress ' drop to edi-progress ( n -- ) 17 18 18 19 : edi-cmd,adr ( offset cmd -- ) \ Send command plus 3 address bytes … … 141 142 over i + over i + edi-program-page ( adr offset ) 142 143 then ( adr offset ) 144 i edi-progress ( adr offset ) 143 145 /flash-page +loop ( adr offset ) 144 146 2drop ( ) -
cpu/arm/olpc/1.75/fw.bth
r2692 r2702 515 515 show-child 516 516 517 update-ec-flash? if show-reflash update-ec-flash then 517 update-ec-flash? if 518 ['] ?enough-power catch ?dup if ( error ) 519 show-no-power 520 .error 521 ." Skipping EC reflash, not enough power" cr 522 d# 1000 ms 523 else 524 show-reflash 525 ['] show-reflash-dot to edi-progress 526 update-ec-flash 527 then 528 then 518 529 519 530 install-alarm -
cpu/x86/pc/olpc/gui.fth
r2488 r2702 375 375 ; 376 376 377 : show-reflash ( -- ) \ bottom left corner, laptop and ellipsis 378 d# 0 d# 810 to icon-xy " int" show-icon 379 d# 450 d# 150 do i d# 844 to icon-xy " bigdot" show-icon d# 100 +loop 380 ; 377 : show-no-power ( -- ) \ chip, battery, overlaid sad face 378 d# 25 d# 772 to icon-xy " spi" show-icon 379 d# 175 d# 772 to icon-xy " battery" show-icon 380 d# 175 d# 790 to icon-xy " sad" show-icon 381 ; 382 383 d# 834 value bar-y 384 d# 150 value bar-x 385 0 value dot-adr 386 387 : read-dot ( -- ) \ rom: is unavailable during reflash 388 0 to dot-adr 0 0 to icon-xy ( ) 389 " darkdot" $get-image if exit then ( ) 390 prep-565 4drop to dot-adr ( ) 391 ; 392 393 : show-reflash ( -- ) \ bottom left corner, chip and progress dots 394 d# 25 d# 772 to icon-xy " spi" show-icon 395 d# 992 bar-x + bar-y to icon-xy " yellowdot" show-icon 396 read-dot 397 ; 398 399 : show-reflash-dot ( n -- ) \ n to vary h# 0 to h# 8000 400 dup h# 400 mod 0= if ( n ) 401 dot-adr 0= if drop exit then ( n ) 402 dot-adr swap h# 20 / bar-x + bar-y ( adr x y ) 403 image-width image-height ( adr x y w h ) 404 " draw-transparent-rectangle" $call-screen 405 else 406 drop 407 then 408 ; 409 410 0 [if] 411 : test-reflash-dot 412 page show-reflash t( h# 8000 0 do i show-reflash-dot h# 80 +loop )t 413 ; 414 [then] 381 415 382 416 : show-x ( -- ) " x" show-icon ;
Note: See TracChangeset
for help on using the changeset viewer.
