equal
deleted
inserted
replaced
|
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 * naviengine_assp\uart\vserialkeyb.cpp |
|
16 * Serial keyboard driver |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalTechnology |
|
24 */ |
|
25 |
|
26 #include <e32keys.h> |
|
27 #include <comm.h> |
|
28 #include <assp.h> |
|
29 #include "../naviengine.h" |
|
30 #include <kernel/kern_priv.h> |
|
31 #include "uart16550_ne.h" |
|
32 #include "vserialkeyb.h" |
|
33 |
|
34 TInt TSerialKeyboard::GetSerialPort(TUint& aBaud) |
|
35 { |
|
36 // For non-BootLoader images, set the debug port and serial port to be the same port |
|
37 aBaud = 115200; |
|
38 TInt r = Kern::SuperPage().iDebugPort; |
|
39 if (r==0x100 || r==0x101) |
|
40 r &= 0xff, aBaud = 230400; |
|
41 return r; |
|
42 } |
|
43 |