本帖最后由 googcheng 于 2019-12-29 15:52 编辑
void TMP_WriteConfReg(uint16_t RegValue)
{
while(I2C_GetFlagStatus(LM75_I2C, I2C_FLAG_BUSY)); //2019-12-28 16:26:38
/*-------------------------------- Transmission Phase -----------------------*/
/* Send LM75_I2C START condition */
I2C_GenerateSTART(LM75_I2C, ENABLE);
/* Test on LM75_I2C EV5 and clear it */
while (!I2C_CheckEvent(LM75_I2C, I2C_EVENT_MASTER_MODE_SELECT)) /* EV5 */
{
}
检查I2C_FLAG_BUSY 状态标志是必须的吗 |