Skip to main content
ESeyo
Associate
January 24, 2019
Question

h

  • January 24, 2019
  • 1 reply
  • 644 views
h

    This topic has been closed for replies.

    1 reply

    S.Ma
    Principal
    January 24, 2019

    Poor coding causing malfunctions.

    Example:

    if((SPI1->SR & SPI_SR_RXNE) && (SPI1->CR2 |= SPI_CR2_RXNEIE))

    SPI1->CR2 |= SPI_CR2_RXNEIE is always non zero, hence TRUE.

    ESeyo
    ESeyoAuthor
    Associate
    January 24, 2019

    thanks I correct that it is beeing more that 2 weeks to fix this problem but I could not can you help me