STM32 I2C硬件中断 无DMA 读写EEPROM可用
voidc02_write_data(void){while(I2C_GetFlagStatus(I2C1,I2C_FLAG_BUSY));WRITE_FLAG=1;I2C_GenerateSTART(I2C1,ENABLE);//while(i2c_plan!=20);//while(I2C_GetFlagStatus(I2C2,I2C_FLAG_BUSY));//delay_ms(5);}voidc02_read_data(){wh