navienginebsp/tools/testreference/lauterbach/setimage.cmm
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 // Updates the current config with the image details of the image number
       
    18 // supplied
       
    19 //////////////////////////////////////////////////////////////////////////////
       
    20 
       
    21 entry &imageNum
       
    22 
       
    23 if "&imageNum"=="4"
       
    24 (
       
    25 &RamImage="&RamImage4"
       
    26 &RamAddr="&RamAddr4"
       
    27 )
       
    28 else if "&imageNum"=="3"
       
    29 (
       
    30 &RamImage="&RamImage3"
       
    31 &RamAddr="&RamAddr3"
       
    32 )
       
    33 else if "&imageNum"=="2"
       
    34 (
       
    35 &RamImage="&RamImage2"
       
    36 &RamAddr="&RamAddr2"
       
    37 )
       
    38 else
       
    39 (
       
    40 &RamImage="&RamImage1"
       
    41 &RamAddr="&RamAddr1"
       
    42 )
       
    43 
       
    44 do writecurrentconfig.cmm
       
    45 
       
    46 print "Image #&imageNum active: &RamImage"