Changeset 2863


Ignore:
Timestamp:
Feb 15, 2012, 12:23:33 AM (4 years ago)
Author:
quozl
Message:

OLPC XO-1.75 - convert test menu to new add-icon construction method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/olpc/testitems.fth

    r2788 r2863  
     1purpose: Platform-specific layout of diagnostic GUI menu items
     2
     3d# 5 to #mfgcols
     4d# 4 to #mfgrows
     5
    16icon: cpu.icon      rom:cpu.565
    27icon: spi.icon      rom:spi.565
     
    1621icon: ebook.icon    rom:ebook.565
    1722icon: leds.icon     rom:leds.565
    18 
    19 d# 15 to #mfgtests
    20 d# 5 to #mfgcols
    21 d# 4 to #mfgrows
    2223
    2324\+ olpc-cl3  : screen-kbd-scroller  ( -- )  blank-screen  open-screen-keyboard  ;
     
    4748
    4849: olpc-test-menu-items  ( -- )
    49    clear-menu
     50   0 to #mfgtests
     51   1 0 set-row-col
    5052
    51  " CPU"
    52  ['] cpu-item      cpu.icon      1 0 install-icon
     53" CPU"
     54['] cpu-item      cpu.icon      add-icon
    5355
    5456   " SPI Flash: Contains EC code, firmware, manufacturing data."
    55    ['] spiflash-item    spi.icon      1 0 install-icon
     57   ['] spiflash-item  spi.icon      add-icon
    5658
    5759   " RAM chips"
    58    ['] memory-item   ram.icon      1 1 install-icon
     60   ['] memory-item    ram.icon      add-icon
    5961
    6062   " Internal mass storage"
    61    ['] int-sd-item   sdcard.icon   1 2 install-icon
     63   ['] int-sd-item    sdcard.icon   add-icon
    6264
    63 \- olpc-cl3    " Plug-in SD card"
    64 \- olpc-cl3    ['] ext-sd-item   sdcard.icon   1 3 install-icon
     65\- olpc-cl3  " Plug-in SD card"
     66\- olpc-cl3  ['] ext-sd-item  sdcard.icon  add-icon
    6567
    6668   " Wireless LAN"
    67    ['] wlan-item     wifi.icon     1 4 install-icon
     69   ['] wlan-item      wifi.icon     add-icon
    6870
    6971   " Display"
    70    ['] display-item  display.icon  2 0 install-icon
     72   ['] display-item   display.icon  add-icon
    7173
    7274   " Camera"
    73    ['] camera-item   camera.icon   2 1 install-icon
     75   ['] camera-item    camera.icon   add-icon
    7476
    7577   " Audio: Speaker and microphone"
    76    ['] audio-item    audio.icon    2 2 install-icon
     78   ['] audio-item     audio.icon    add-icon
    7779
    7880   " Battery"
    79    ['] battery-item  battery.icon  2 3 install-icon
     81   ['] battery-item   battery.icon  add-icon
    8082
    8183   " RTC (Real-Time Clock)"
    82    ['] rtc-item      clock.icon    2 4 install-icon
     84   ['] rtc-item       clock.icon    add-icon
    8385
    8486\+ olpc-cl2  " USB ports"
    8587\+ olpc-cl3  " USB-A port"
    86    ['] usb-item      usb.icon      3 0 install-icon
     88   ['] usb-item       usb.icon      add-icon
    8789
    8890\+ olpc-cl3  " USB OTG port"
    89 \+ olpc-cl3   ['] otg-item      usb.icon      3 1 install-icon
     91\+ olpc-cl3  ['] otg-item  usb.icon  add-icon
    9092
    9193   \ These are last because they require user participation.
    9294   \ The earlier tests are all included in automatic batch-mode.
    9395
    94 \- olpc-cl3    " Keyboard"
    95 \- olpc-cl3    ['] keyboard-item keyboard.icon 3 1 install-icon
     96\- olpc-cl3  " Keyboard"
     97\- olpc-cl3  ['] keyboard-item     keyboard.icon     add-icon
    9698
    97 \- olpc-cl3    " Touchpad"
    98 \- olpc-cl3    ['] touchpad-item touchpad.icon 3 2 install-icon
     99\- olpc-cl3  " Touchpad"
     100\- olpc-cl3  ['] touchpad-item     touchpad.icon     add-icon
    99101
    100 \+ olpc-cl3    " Touchscreen"
    101 \+ olpc-cl3    ['] touchscreen-item touchscreen.icon 3 2 install-icon
     102\+ olpc-cl3  " Touchscreen"
     103\+ olpc-cl3  ['] touchscreen-item  touchscreen.icon  add-icon
    102104
    103105   " LEDs"
    104    ['] leds-item     leds.icon     3 3 install-icon
     106   ['] leds-item    leds.icon   add-icon
    105107
    106108   " Switches and Accelerometer"
    107    ['] switch-item   ebook.icon    3 4 install-icon
     109   ['] switch-item  ebook.icon  add-icon
    108110;
    109111' olpc-test-menu-items to test-menu-items
Note: See TracChangeset for help on using the changeset viewer.