2019-08-21 01:59 AM
#if I2C_ENABLE
USART_ClearITPendingBit(USART1, USART_IT_RXNE);
USART_ITConfig(USART1, USART_IT_RXNE, DISABLE);
p_write = (uint8_t *)&temp100;
sEE_WriteBuffer(p_write, write_addr, 2);
USART_ITConfig(USART1, USART_IT_RXNE, ENABLE);
printf("i2c write done\n");
#endif
does not work well