In this line
I wonder if Paul meant to mask out the bits, rather than setting all of the error condition bits.
This isn't causing me any trouble, I just stumbled across it while learning about the Teensy 4.1 eDMA system. I'm not sure why you would want to explicitly set all of the error bits, but I can see how one might want to leave them as-is and reset the receive and transmit data flags...
If it is an error: I think I may have seen the same code copy/pasted in some other LCD module somewhere as well but I'm not sure which.
Code:
_pimxrt_spi->SR = 0x3f00; // clear out all of the other status...
I wonder if Paul meant to mask out the bits, rather than setting all of the error condition bits.
Code:
_pimxrt_spi->SR &= 0x3f00; // clear out all of the other status...
This isn't causing me any trouble, I just stumbled across it while learning about the Teensy 4.1 eDMA system. I'm not sure why you would want to explicitly set all of the error bits, but I can see how one might want to leave them as-is and reset the receive and transmit data flags...
If it is an error: I think I may have seen the same code copy/pasted in some other LCD module somewhere as well but I'm not sure which.