Update contrib.
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Initialise Comm Server in an simple text shell environment
23 #if defined (__WINS__)
24 #define PDD_NAME _L("ECDRV")
25 #define LDD_NAME _L("ECOMM")
26 #define LDD_FNAME _L("ECOMM")
28 #define PDD_NAME _L("EUART1")
29 #define LDD_NAME _L("ECOMM")
30 #define LDD_FNAME _L("FCOMM")
35 EXPORT_C int CommInit(int aEnhanced)
38 TInt err=fs.Connect(); // make sure the FileServer is alive (only needed for WINS test code)
41 err=User::LoadPhysicalDevice(PDD_NAME);
42 if (err!=KErrNone && err!=KErrAlreadyExists)
44 err=User::LoadLogicalDevice( aEnhanced?LDD_FNAME:LDD_NAME );
45 if (err!=KErrNone && err!=KErrAlreadyExists)