53 StatValue = LPC_I2C->STAT;
229 LPC_SYSCON->PRESETCTRL |= (0x1<<1);
231 LPC_SYSCON->PRESETCTRL |= (0x1<<0);
233 LPC_SYSCON->SYSAHBCLKCTRL |= (1<<5);
234 LPC_IOCON->PIO0_4 &= ~0x3F;
235 LPC_IOCON->PIO0_4 |= 0x01;
236 LPC_IOCON->PIO0_5 &= ~0x3F;
237 LPC_IOCON->PIO0_5 |= 0x01;
244 LPC_IOCON->PIO0_4 |= (0x1<<9);
245 LPC_IOCON->PIO0_5 |= (0x1<<9);
259 NVIC_EnableIRQ(I2C_IRQn);
volatile uint32_t WrIndex
uint32_t I2CInit(uint32_t I2cMode)
volatile uint8_t I2CMasterBuffer[BUFSIZE]
volatile uint32_t I2CWriteLength
volatile uint32_t I2CMasterState
#define I2C_REPEATED_START
volatile uint32_t I2CCount
volatile uint32_t RdIndex
volatile uint8_t I2CSlaveBuffer[BUFSIZE]
volatile uint32_t I2CReadLength
void I2C_IRQHandler(void)
volatile uint32_t I2CMode
volatile uint32_t I2CSlaveState