0
|
1 |
// Copyright (c) 2008-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 the License "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".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// template/template_assp/iic.mmp
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#define __USING_ASSP_REGISTER_API__
|
|
19 |
#define __USING_ASSP_INTERRUPT_API__
|
|
20 |
|
|
21 |
#include <variant.mmh>
|
|
22 |
|
|
23 |
// Select the mode to build
|
|
24 |
// For Master-Slave mode, uncomment both MASTER and SLAVE defines
|
|
25 |
#define __USE_MASTER_MODE__
|
|
26 |
#define __USE_SLAVE_MODE__
|
|
27 |
|
|
28 |
// PIL source
|
|
29 |
#include "../../../kernel/eka/drivers/iic/iic_channel.mmh"
|
|
30 |
sourcepath ../../../kernel/eka/drivers/iic
|
|
31 |
source IIC_PIL_SOURCE
|
|
32 |
|
|
33 |
// PSL source: shared
|
|
34 |
sourcepath ../template_assp/iic
|
|
35 |
source iic_psl.cpp
|
|
36 |
|
|
37 |
// PSL source: Master
|
|
38 |
#ifdef __USE_MASTER_MODE__
|
|
39 |
macro MASTER_MODE
|
|
40 |
source iic_master.cpp
|
|
41 |
#endif
|
|
42 |
|
|
43 |
// PSL source: Slave
|
|
44 |
#ifdef __USE_SLAVE_MODE__
|
|
45 |
macro SLAVE_MODE
|
|
46 |
source iic_slave.cpp
|
|
47 |
#endif
|
|
48 |
|
|
49 |
// define bus type
|
|
50 |
macro BUS_IMPLMENTATION_PRIORITY=(KExtensionMaximumPriority-2)
|
|
51 |
|
|
52 |
target VariantTarget(iic,dll)
|
|
53 |
targettype kext
|
|
54 |
|
|
55 |
OS_LAYER_SYSTEMINCLUDE_SYMBIAN
|
|
56 |
//SYMBIAN_BASE_SYSTEMINCLUDE(assp/template_assp)
|
|
57 |
//SYMBIAN_BASE_SYSTEMINCLUDE(template)
|
|
58 |
//SYMBIAN_BASE_SYSTEMINCLUDE(template/specific)
|
|
59 |
|
|
60 |
|
|
61 |
library VariantTarget(gpio,lib)
|
|
62 |
|
|
63 |
|
|
64 |
//VENDORID 0x70000001
|
|
65 |
|
|
66 |
//uid 0x100039d0 0x10285812
|
|
67 |
//capability all
|
|
68 |
|
|
69 |
SMPSAFE
|
|
70 |
MACRO CPU_AFFINITY_ANY
|