equal
deleted
inserted
replaced
|
1 // Copyright (c) 2010 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 // lukasz.forynski@gmail.com |
|
13 // |
|
14 // Description: |
|
15 // omap3530/omap3530_drivers/spi/psl_init.h |
|
16 // |
|
17 |
|
18 |
|
19 #ifndef __OMAP3530_SPI_PSL_H__ |
|
20 #define __OMAP3530_SPI_PSL_H__ |
|
21 |
|
22 const TInt KIicPslNumOfChannels = 2; // Number of channels supported // TODO only two 3 and 4 for now.. |
|
23 // FIXME - there is a crash when using channels 1 and 2 - when accesing registers at e.g. 0xc609a000 |
|
24 |
|
25 struct TIicOperationType |
|
26 { |
|
27 enum TOperation |
|
28 { |
|
29 ENop = 0x00, |
|
30 ETransmitOnly = 0x01, |
|
31 EReceiveOnly = 0x02, |
|
32 ETransmitReceive = 0x03 |
|
33 }; |
|
34 |
|
35 struct TOp |
|
36 { |
|
37 TUint8 iIsTransmitting : 1; |
|
38 TUint8 iIsReceiving : 1; |
|
39 TUint8 iRest : 6; |
|
40 }; |
|
41 |
|
42 union |
|
43 { |
|
44 TOp iOp; |
|
45 TUint8 iValue; |
|
46 }; |
|
47 }; |
|
48 |
|
49 #endif /*__OMAP3530_SPI_PSL_H__*/ |