@@ -43,47 +43,47 @@
|
||||
/* Register definitions */
|
||||
/*****************************************************************************/
|
||||
|
||||
#define I2C_CR1(i2c_base) MMIO32(i2c_base + 0x00)
|
||||
#define I2C_CR1(i2c_base) MMIO32((i2c_base) + 0x00)
|
||||
#define I2C1_CR1 I2C_CR1(I2C1)
|
||||
#define I2C2_CR1 I2C_CR1(I2C2)
|
||||
|
||||
#define I2C_CR2(i2c_base) MMIO32(i2c_base + 0x04)
|
||||
#define I2C_CR2(i2c_base) MMIO32((i2c_base) + 0x04)
|
||||
#define I2C1_CR2 I2C_CR2(I2C1)
|
||||
#define I2C2_CR2 I2C_CR2(I2C2)
|
||||
|
||||
#define I2C_OAR1(i2c_base) MMIO32(i2c_base + 0x08)
|
||||
#define I2C_OAR1(i2c_base) MMIO32((i2c_base) + 0x08)
|
||||
#define I2C1_OAR1 I2C_OAR1(I2C1)
|
||||
#define I2C2_OAR1 I2C_OAR1(I2C2)
|
||||
|
||||
#define I2C_OAR2(i2c_base) MMIO32(i2c_base + 0x0c)
|
||||
#define I2C_OAR2(i2c_base) MMIO32((i2c_base) + 0x0c)
|
||||
#define I2C1_OAR2 I2C_OAR2(I2C1)
|
||||
#define I2C2_OAR2 I2C_OAR2(I2C2)
|
||||
|
||||
#define I2C_TIMINGR(i2c_base) MMIO32(i2c_base + 0x10)
|
||||
#define I2C_TIMINGR(i2c_base) MMIO32((i2c_base) + 0x10)
|
||||
#define I2C1_TIMINGR I2C_TIMINGR(I2C1)
|
||||
#define I2C2_TIMINGR I2C_TIMINGR(I2C2)
|
||||
|
||||
#define I2C_TIMEOUTR(i2c_base) MMIO32(i2c_base + 0x14)
|
||||
#define I2C_TIMEOUTR(i2c_base) MMIO32((i2c_base) + 0x14)
|
||||
#define I2C1_TIMEOUTR I2C_TIMEOUTR(I2C1)
|
||||
#define I2C2_TIMEOUTR I2C_TIMEOUTR(I2C2)
|
||||
|
||||
#define I2C_ISR(i2c_base) MMIO32(i2c_base + 0x18)
|
||||
#define I2C_ISR(i2c_base) MMIO32((i2c_base) + 0x18)
|
||||
#define I2C1_ISR I2C_ISR(I2C1)
|
||||
#define I2C2_ISR I2C_ISR(I2C2)
|
||||
|
||||
#define I2C_ICR(i2c_base) MMIO32(i2c_base + 0x1C)
|
||||
#define I2C_ICR(i2c_base) MMIO32((i2c_base) + 0x1C)
|
||||
#define I2C1_ICR I2C_ICR(I2C1)
|
||||
#define I2C2_ICR I2C_ICR(I2C2)
|
||||
|
||||
#define I2C_PECR(i2c_base) MMIO8(i2c_base + 0x20)
|
||||
#define I2C_PECR(i2c_base) MMIO8((i2c_base) + 0x20)
|
||||
#define I2C1_PECR I2C_PECR(I2C1)
|
||||
#define I2C2_PECR I2C_PECR(I2C2)
|
||||
|
||||
#define I2C_RXDR(i2c_base) MMIO8(i2c_base + 0x24)
|
||||
#define I2C_RXDR(i2c_base) MMIO8((i2c_base) + 0x24)
|
||||
#define I2C1_RXDR I2C_RXDR(I2C1)
|
||||
#define I2C2_RXDR I2C_RXDR(I2C2)
|
||||
|
||||
#define I2C_TXDR(i2c_base) MMIO8(i2c_base + 0x28)
|
||||
#define I2C_TXDR(i2c_base) MMIO8((i2c_base) + 0x28)
|
||||
#define I2C1_TXDR I2C_TXDR(I2C1)
|
||||
#define I2C2_TXDR I2C_TXDR(I2C2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user