|
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 // Writes the current config to file |
|
18 ////////////////////////////////////////////////////////////////////////////// |
|
19 |
|
20 |
|
21 // Open the config file for writing |
|
22 open #1 currentconfig.cmm /Create |
|
23 |
|
24 // Write the config to the file in script format for loading later |
|
25 write #1 "&"+"Platform="+'"'+"&Platform"+'"' |
|
26 write #1 "&"+"AutoloadModule="+'"'+"&AutoloadModule"+'"' |
|
27 write #1 "&"+"RamAddr="+'"'+"&RamAddr"+'"' |
|
28 write #1 "&"+"RamImage="+'"'+"&RamImage"+'"' |
|
29 write #1 "&"+"RamAddr1="+'"'+"&RamAddr1"+'"' |
|
30 write #1 "&"+"RamImage1="+'"'+"&RamImage1"+'"' |
|
31 write #1 "&"+"RamAddr2="+'"'+"&RamAddr2"+'"' |
|
32 write #1 "&"+"RamImage2="+'"'+"&RamImage2"+'"' |
|
33 write #1 "&"+"RamAddr3="+'"'+"&RamAddr3"+'"' |
|
34 write #1 "&"+"RamImage3="+'"'+"&RamImage3"+'"' |
|
35 write #1 "&"+"RamAddr4="+'"'+"&RamAddr4"+'"' |
|
36 write #1 "&"+"RamImage4="+'"'+"&RamImage4"+'"' |
|
37 write #1 "&"+"FlashAddr="+'"'+"&FlashAddr"+'"' |
|
38 write #1 "&"+"FlashImage="+'"'+"&FlashImage"+'"' |
|
39 write #1 "&"+"FlashWriteProtect="+'"'+"&FlashWriteProtect"+'"' |
|
40 write #1 "&"+"FlashEraseProtect="+'"'+"&FlashEraseProtect"+'"' |
|
41 |
|
42 // All done, so close the file |
|
43 close #1 |