cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable RX interrupt temporarily

David.Cheng
Associate II
#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

0 REPLIES 0