sl@0: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Provides some configurable constants used by all the tests sl@0: // sl@0: // sl@0: sl@0: #ifndef user_config_h sl@0: #define user_config_h sl@0: sl@0: #include sl@0: sl@0: // sl@0: // Need to provide drive number and Flash address. sl@0: // KDriveNumber is the TBusLocalDrive number that the media driver mounts on. sl@0: // This will match the Variant::DeviceInfoFromDrive function. sl@0: // For example if your LFFS drive mounts on EFixedMedia0 and DeviceInfoFromDrive sl@0: // returns EFixedMedia0 for drive number 1, then KDriveNumber must be 1. sl@0: // sl@0: // KFlashPhysicalAddress is the physical address of the start of the sl@0: // LFFS area in Flash. This is used to map a chunk that the test apps sl@0: // can use to read directly from Flash. sl@0: // sl@0: sl@0: //#error You must edit user_config.h to provide driver number and flash address sl@0: #ifdef __WINS__ sl@0: const TInt KDriveNumber = 8; sl@0: const TChar KLffsLogicalDriveNumber = EDriveW; sl@0: #else sl@0: #if 0 sl@0: const TInt KDriveNumber = 0; sl@0: const TChar KLffsLogicalDriveNumber = EDriveC; sl@0: #else sl@0: // XXX TONYL: Unmounting C wouldn't work for me - fault a KERN FAULT 4 sl@0: const TChar KLffsLogicalDriveNumber = EDriveK; sl@0: const TInt KDriveNumber = 8; sl@0: #endif sl@0: #endif sl@0: sl@0: // Unmount drive before starting test - reccommended sl@0: #define UNMOUNT_DRIVE sl@0: sl@0: // Don't attempt to load the LFFS driver - define this if the driver is already loaded sl@0: #define SKIP_PDD_LOAD sl@0: sl@0: _LIT( KLfsDriverName, "MEDLFS" ); sl@0: sl@0: #endif