Am I right initialize I2C and read bytes?
Posted on December 06, 2011 at 18:19Hello. I have a device connected to stm32 through I2C1. Am I right initialize it?&sharpdefine DEV_ADDR 0x53uint8_t I2C_ByteRead(uint8_t Addr){ uint8_t tmp; while(I2C_GetFlagStatus(I2CG, I2C_FLAG_BUSY)); // Whil...