Skip to main content
Visitor II
August 21, 2019
Question

how to disable RX interrupt temporarily

  • August 21, 2019
  • 0 replies
  • 501 views
#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

    This topic has been closed for replies.