sl@0
|
1 |
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// Provides some configurable constants used by all the tests
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef user_config_h
|
sl@0
|
19 |
#define user_config_h
|
sl@0
|
20 |
|
sl@0
|
21 |
#include <f32file.h>
|
sl@0
|
22 |
|
sl@0
|
23 |
//
|
sl@0
|
24 |
// Need to provide drive number and Flash address.
|
sl@0
|
25 |
// KDriveNumber is the TBusLocalDrive number that the media driver mounts on.
|
sl@0
|
26 |
// This will match the Variant::DeviceInfoFromDrive function.
|
sl@0
|
27 |
// For example if your LFFS drive mounts on EFixedMedia0 and DeviceInfoFromDrive
|
sl@0
|
28 |
// returns EFixedMedia0 for drive number 1, then KDriveNumber must be 1.
|
sl@0
|
29 |
//
|
sl@0
|
30 |
// KFlashPhysicalAddress is the physical address of the start of the
|
sl@0
|
31 |
// LFFS area in Flash. This is used to map a chunk that the test apps
|
sl@0
|
32 |
// can use to read directly from Flash.
|
sl@0
|
33 |
//
|
sl@0
|
34 |
|
sl@0
|
35 |
//#error You must edit user_config.h to provide driver number and flash address
|
sl@0
|
36 |
#ifdef __WINS__
|
sl@0
|
37 |
const TInt KDriveNumber = 8;
|
sl@0
|
38 |
const TChar KLffsLogicalDriveNumber = EDriveW;
|
sl@0
|
39 |
#else
|
sl@0
|
40 |
#if 0
|
sl@0
|
41 |
const TInt KDriveNumber = 0;
|
sl@0
|
42 |
const TChar KLffsLogicalDriveNumber = EDriveC;
|
sl@0
|
43 |
#else
|
sl@0
|
44 |
// XXX TONYL: Unmounting C wouldn't work for me - fault a KERN FAULT 4
|
sl@0
|
45 |
const TChar KLffsLogicalDriveNumber = EDriveK;
|
sl@0
|
46 |
const TInt KDriveNumber = 8;
|
sl@0
|
47 |
#endif
|
sl@0
|
48 |
#endif
|
sl@0
|
49 |
|
sl@0
|
50 |
// Unmount drive before starting test - reccommended
|
sl@0
|
51 |
#define UNMOUNT_DRIVE
|
sl@0
|
52 |
|
sl@0
|
53 |
// Don't attempt to load the LFFS driver - define this if the driver is already loaded
|
sl@0
|
54 |
#define SKIP_PDD_LOAD
|
sl@0
|
55 |
|
sl@0
|
56 |
_LIT( KLfsDriverName, "MEDLFS" );
|
sl@0
|
57 |
|
sl@0
|
58 |
#endif
|