|
1 /* |
|
2 * Copyright (c) 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 |
|
18 |
|
19 #define __USING_ASSP_REGISTER_API__ |
|
20 #define __USING_ASSP_INTERRUPT_API__ |
|
21 |
|
22 #include <variant.mmh> |
|
23 #include "csi_config.mmh" |
|
24 |
|
25 // Select the mode to build |
|
26 // For Master-Slave mode, uncomment both MASTER and SLAVE defines |
|
27 |
|
28 macro STANDALONE_CHANNEL |
|
29 #define STANDALONE_CHANNEL /*Only for iic_channel.mmh to pick up the needed source files*/ |
|
30 |
|
31 // PIL source |
|
32 #include "../../../../os/kernelhwsrv/kernel/eka/drivers/iic/iic_channel.mmh" |
|
33 sourcepath ../../../../os/kernelhwsrv/kernel/eka/drivers/iic |
|
34 source IIC_PIL_SOURCE |
|
35 |
|
36 |
|
37 |
|
38 // PSL source |
|
39 sourcepath ../naviengine_assp/csi |
|
40 source csi_psl.cpp |
|
41 |
|
42 #ifdef __USE_MASTER_MODE__ |
|
43 macro MASTER_MODE |
|
44 //macro CPU_AFFINITY_ANY |
|
45 source csi_master.cpp |
|
46 #endif |
|
47 |
|
48 // PSL source: Slave |
|
49 #ifdef __USE_SLAVE_MODE__ |
|
50 macro SLAVE_MODE |
|
51 source csi_slave.cpp |
|
52 #endif |
|
53 |
|
54 // define bus type |
|
55 macro BUS_IMPLMENTATION_PRIORITY=(KExtensionMaximumPriority-2) |
|
56 |
|
57 target VariantTarget(csi_ctrless,dll) |
|
58 targettype kext |
|
59 |
|
60 SYMBIAN_BASE_SYSTEMINCLUDE(ne1_tb) |
|
61 |
|
62 SYMBIAN_BASE_SYSTEMINCLUDE(drivers) |
|
63 |
|
64 OS_LAYER_SYSTEMINCLUDE_SYMBIAN |
|
65 |
|
66 // If a client doesn't specify any mode, the build is still supported |
|
67 // However, if you run t_csi, you will get both master and slave test |
|
68 // not supported with a returned KErrNotSupported. |
|
69 #if defined (__USE_MASTER_MODE__) && defined(__USE_SLAVE_MODE__) |
|
70 deffile ~/csi_ctrless.def |
|
71 #elif defined (__USE_MASTER_MODE__) |
|
72 deffile ~/csi_ctrless_masteronly.def |
|
73 #elif defined (__USE_SLAVE_MODE__) |
|
74 deffile ~/csi_ctrless_slaveonly.def |
|
75 #else |
|
76 deffile ~/csi_ctrless_nomode.def |
|
77 #endif |
|
78 |
|
79 library VariantTarget(gpio,lib) |
|
80 library hcr.lib |
|
81 |
|
82 |
|
83 //VENDORID 0x70000001 |
|
84 |
|
85 //uid 0x100039d0 0x10285812 |
|
86 //capability all |
|
87 |
|
88 SMPSAFE |