1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // template\template_variant\inc\iolines.h |
14 // omap3530/beagleboard/inc/iolines.h |
15 // Variant layer header for Template Platform |
15 // Variant layer header for Beagle Platform |
16 // |
|
17 // |
16 // |
18 |
17 |
19 |
18 |
20 |
19 |
21 #ifndef __V32TEMPLATEV1_H__ |
20 #ifndef __V32TEMPLATEV1_H__ |
22 #define __V32TEMPLATEV1_H__ |
21 #define __V32TEMPLATEV1_H__ |
23 #include <e32cmn.h> |
22 #include <e32cmn.h> |
24 #include <kpower.h> |
23 #include <kpower.h> |
|
24 #include <assp/omap3530_assp/omap3530_assp_priv.h> |
25 |
25 |
26 //---------------------------------------------------------------------------- |
26 //---------------------------------------------------------------------------- |
27 // Variant-specific constants: use #define if constant dependencies are not |
27 // Variant-specific constants: use #define if constant dependencies are not |
28 // declared within this file (this breaks the dependency on other header files) |
28 // declared within this file (this breaks the dependency on other header files) |
29 //---------------------------------------------------------------------------- |
29 //---------------------------------------------------------------------------- |
61 const TUint32 KHoIntContEnable = 0x00; // offsets from KHwVariantPhysBase+KHoBaseIntCont |
61 const TUint32 KHoIntContEnable = 0x00; // offsets from KHwVariantPhysBase+KHoBaseIntCont |
62 const TUint32 KHoIntContPending = 0x04; |
62 const TUint32 KHoIntContPending = 0x04; |
63 // other Variant and external blocks Base adrress offsets to KHwVariantPhysBase |
63 // other Variant and external blocks Base adrress offsets to KHwVariantPhysBase |
64 |
64 |
65 |
65 |
66 // TO DO: (optional) |
66 const TInt KIntIdKeyboard=0; |
67 // |
|
68 // Enumerate here all Variant (2nd level) interrupt sources. It could be a good idea to enumerate them in a way that |
|
69 // facilitates operating on the corresponding interrupt controller registers (e.g using their value as a shift count) |
|
70 // |
|
71 // (EXAMPLE ONLY:) |
|
72 enum TTemplateInterruptId |
|
73 { |
|
74 // the top-level bit is set to distinguish from first level (ASSP) Interrupts |
|
75 EXIntIdA=0x80000000, |
|
76 EXIntIdB=0x80000001, |
|
77 // ... |
|
78 EXIntIdZ=0x80000019, |
|
79 |
67 |
80 ENumXInts=0x1A |
|
81 }; |
|
82 |
68 |
83 // |
69 class GpioPin; |
84 // TO DO: (optional) |
|
85 // |
|
86 // Define here some commonly used Variant (2nd level) interrupts |
|
87 // |
|
88 // (EXAMPLE ONLY:) |
|
89 const TInt KIntIdKeyboard=EXIntIdB; |
|
90 |
70 |
91 class Variant |
71 class Variant |
92 { |
72 { |
93 // below is a selection of functions usually implemented at this level. This do not constitute a mandatory |
73 // below is a selection of functions usually implemented at this level. This do not constitute a mandatory |
94 // set and it might not be relevant for your hardware... |
74 // set and it might not be relevant for your hardware... |
121 */ |
101 */ |
122 IMPORT_C static TUint Switches(); |
102 IMPORT_C static TUint Switches(); |
123 // other functions to access hardware not covered by specific device-drivres, which may be called from drivers |
103 // other functions to access hardware not covered by specific device-drivres, which may be called from drivers |
124 // or platform-specifc code |
104 // or platform-specifc code |
125 // ... |
105 // ... |
|
106 IMPORT_C static TInt SetGPIOPin(TInt aId,GpioPin *aPin); |
|
107 IMPORT_C static TInt GetGPIOPin(TInt aId,GpioPin * aPin); |
|
108 IMPORT_C static TInt GetMsTickPeriod(); |
|
109 |
126 public: |
110 public: |
127 static TUint32 iBaseAddress; |
111 static TUint32 iBaseAddress; |
128 // (optional): May need to have a follower variable to store the value of a read only register initialised at boot time |
112 // (optional): May need to have a follower variable to store the value of a read only register initialised at boot time |
129 // static TUint aFollower; |
113 // static TUint aFollower; |
130 }; |
114 }; |
131 |
115 |
132 #endif |
116 #endif |
|
117 |