void sEE_ReadBuffer(uint8_t* pBuffer, uint16_t ReadAddr, uint16_t* NumByteToRead)
{
//__IO uint32_t timeout = 0xFFFF;
__IO uint32_t timeout = 0xf00;
/*!< Wait the end of last communication */
for (;timeout > 0; timeout--);
/* Set the poin...
hardware I2C: my stm8l152 have two i2c slave device, it works well when does not connect to a oscilloscope.when connect to oscilloscope, mcu may be stop i think oscilloscope has effect on i2c, I2C communicate by polling
I2C_Cmd(sEE_I2C, ENABLE);
/* sEE_I2C configuration after enabling it */
I2C_Init(sEE_I2C, I2C_SPEED, I2C_SLAVE_ADDRESS7, I2C_Mode_I2C, I2C_DutyCycle_2,
I2C_Ack_Enable, I2C_AcknowledgedAddress_7bit);do the init order have some problem? ...