OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF5282_Eclipse/] [RTOSDemo/] [MCF5282/] [MCF5282_I2C.h] - Blame information for rev 584

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/* Coldfire C Header File
2
 * Copyright Freescale Semiconductor Inc
3
 * All rights reserved.
4
 *
5
 * 2007/03/19 Revision: 0.9
6
 */
7
 
8
#ifndef __MCF5282_I2C_H__
9
#define __MCF5282_I2C_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* I2C Module (I2C)
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_I2C_I2ADR                        (*(vuint8 *)(&__IPSBAR[0x300]))
20
#define MCF_I2C_I2FDR                        (*(vuint8 *)(&__IPSBAR[0x304]))
21
#define MCF_I2C_I2CR                         (*(vuint8 *)(&__IPSBAR[0x308]))
22
#define MCF_I2C_I2SR                         (*(vuint8 *)(&__IPSBAR[0x30C]))
23
#define MCF_I2C_I2DR                         (*(vuint8 *)(&__IPSBAR[0x310]))
24
 
25
 
26
 
27
/* Bit definitions and macros for MCF_I2C_I2ADR */
28
#define MCF_I2C_I2ADR_ADR(x)                 (((x)&0x7F)<<0x1)
29
 
30
/* Bit definitions and macros for MCF_I2C_I2FDR */
31
#define MCF_I2C_I2FDR_IC(x)                  (((x)&0x3F)<<0)
32
 
33
/* Bit definitions and macros for MCF_I2C_I2CR */
34
#define MCF_I2C_I2CR_RSTA                    (0x4)
35
#define MCF_I2C_I2CR_TXAK                    (0x8)
36
#define MCF_I2C_I2CR_MTX                     (0x10)
37
#define MCF_I2C_I2CR_MSTA                    (0x20)
38
#define MCF_I2C_I2CR_IIEN                    (0x40)
39
#define MCF_I2C_I2CR_IEN                     (0x80)
40
 
41
/* Bit definitions and macros for MCF_I2C_I2SR */
42
#define MCF_I2C_I2SR_RXAK                    (0x1)
43
#define MCF_I2C_I2SR_IIF                     (0x2)
44
#define MCF_I2C_I2SR_SRW                     (0x4)
45
#define MCF_I2C_I2SR_IAL                     (0x10)
46
#define MCF_I2C_I2SR_IBB                     (0x20)
47
#define MCF_I2C_I2SR_IAAS                    (0x40)
48
#define MCF_I2C_I2SR_ICF                     (0x80)
49
 
50
/* Bit definitions and macros for MCF_I2C_I2DR */
51
#define MCF_I2C_I2DR_DATA(x)                 (((x)&0xFF)<<0)
52
 
53
 
54
#endif /* __MCF5282_I2C_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.