navienginebsp/tools/testreference/lauterbach/devboards_menus.men
changeset 0 5de814552237
equal deleted inserted replaced
-1:000000000000 0:5de814552237
       
     1 //
       
     2 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:  
       
    15 //
       
    16 ;********************************************************************************
       
    17 ;*
       
    18 ;* devboards_menu.men
       
    19 ;*
       
    20 ;* Generic RAM download script with automatic attaching and symbol loading.
       
    21 ;*
       
    22 ;********************************************************************************
       
    23 
       
    24 ;********************************************************************************
       
    25 ;* Devboards dropdown menu
       
    26 ;********************************************************************************
       
    27 ADD
       
    28 MENU
       
    29 	(
       
    30 	POPUP "&Devboards"
       
    31 		(
       
    32 		MENUITEM "[:symbols]Enable Symbols"
       
    33 			(
       
    34 			ChDir.DO ..\scripts-v2\attach.cmm
       
    35 			ChDir.DO ..\scripts-v2\symbolics.cmm
       
    36 			)
       
    37 		MENUITEM "[:find]Toggle EKA2 awareness" "DO ..\scripts-v2\Toggle_SymbianAwareness.cmm"
       
    38 
       
    39 		MENUITEM "[:list]List Symbol Modules" "symbol.autoload.list"
       
    40 
       
    41 		; ==============================================================================
       
    42 		SEPARATOR
       
    43 		MENUITEM "[:image]Config Dialog"               "chdir.DO ..\scripts-v2\configdialog.cmm"
       
    44 		MENUITEM "[:right]Attach to board"             "chdir.DO ..\scripts-v2\attach.cmm"
       
    45 		MENUITEM "[:left]Attach to board with Symbols"
       
    46 			(
       
    47 			ChDir.DO ..\scripts-v2\attach.cmm
       
    48 			ChDir.DO ..\scripts-v2\symbolics.cmm
       
    49 			)
       
    50 		MENUITEM "[:init]Init board"                   "chdir.DO ..\scripts-v2\init.cmm"
       
    51 		MENUITEM "[:load]Load Image to board"          "chdir.DO ..\scripts-v2\load.cmm"
       
    52 		MENUITEM "[:symbols]Enable Symbols"            "chdir.DO ..\scripts-v2\symbolics.cmm"
       
    53 
       
    54 		SEPARATOR
       
    55 
       
    56 		MENUITEM "[:load]Set image 1 as current image" "chdir.DO ..\scripts-v2\setimage.cmm 1"
       
    57 		MENUITEM "[:load]Set image 2 as current image" "chdir.DO ..\scripts-v2\setimage.cmm 2"
       
    58 		MENUITEM "[:load]Set image 3 as current image" "chdir.DO ..\scripts-v2\setimage.cmm 3"
       
    59 		MENUITEM "[:load]Set image 4 as current image" "chdir.DO ..\scripts-v2\setimage.cmm 4"
       
    60 
       
    61 		SEPARATOR
       
    62 
       
    63 		MENUITEM "[:flash]Erase Flash on board"        "chdir.DO ..\scripts-v2\flasherase.cmm"
       
    64 		MENUITEM "[:flash]Flash Image to board"        "chdir.DO ..\scripts-v2\flashimage.cmm"
       
    65 		; ==============================================================================
       
    66 		SEPARATOR
       
    67 		MENUITEM "[:remove]Detach" "sys.down"
       
    68 
       
    69 		SEPARATOR
       
    70 
       
    71 		popup "H&2"
       
    72 			(
       
    73 			; These will only work on H2
       
    74 			menuitem "View FrameBuffer 8BPP"  "data.image asd:0x20002200 240. 320. /PALETTE256X12 asd:0x20002000"
       
    75 			menuitem "View FrameBuffer 16BPP" "data.image asd:0x20002200 240. 320. /RGB565LE"
       
    76 			)
       
    77 
       
    78 		POPUP "H&4"
       
    79 			(
       
    80 			; These will only work on H4
       
    81 			MENUITEM "View FrameBuffer 16 BPP"
       
    82 				(
       
    83 				; Read the location of the framebuffer out of the display controller
       
    84 				local &_FRAMEBUFFERADDR
       
    85 				&_FRAMEBUFFERADDR=data.long(asd:0x48050480)
       
    86 				data.image asd:&_FRAMEBUFFERADDR 240. 320. // RGB565LE
       
    87 				)
       
    88 
       
    89 			MENUITEM "View FrameBuffer 24 BPP"
       
    90 				(
       
    91 				; Read the location of the framebuffer out of the display controller
       
    92 				local &_FRAMEBUFFERADDR
       
    93 				&_FRAMEBUFFERADDR=data.long(asd:0x48050480)
       
    94 				data.image asd:&_FRAMEBUFFERADDR 240. 320. // RGBX888LE
       
    95 				)
       
    96 
       
    97 			MENUITEM "View FrameBuffer 16 BPP Landscape"
       
    98 				(
       
    99 				; Read the location of the framebuffer out of the display controller
       
   100 				local &_FRAMEBUFFERADDR
       
   101 				&_FRAMEBUFFERADDR=data.long(asd:0x48050480)
       
   102 				data.image asd:&_FRAMEBUFFERADDR 320. 240. // RGB565LE
       
   103 				)
       
   104 			)
       
   105 
       
   106 		SEPARATOR
       
   107 		MENUITEM "Edit menus"    "b::menu.program ..\scripts-v2\devboards_menus.men"
       
   108 		MENUITEM "Refresh menus" "b::menu.reprogram ..\scripts-v2\devboards_menus.men"
       
   109 		)
       
   110 	)