Skip to main content
ESeyo
Associate
Jan 24, 2019 9:58 AM UTC
Question

h

h

    This topic has been closed for replies.

    2 replies

    S.Ma
    Principal
    Jan 24, 2019 6:09 PM UTC

    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
    Jan 24, 2019 7:02 PM UTC

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