You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AVR USART and SPI0_CTRLA release() can deselect before the last byte finishes #5133
Unlike the classic AVR class, whose release() calls waitFully() first, the USART and modern SPI0_CTRLA classes in src/platforms/avr/fastspi_avr.h call mPSelect->release() with a byte possibly still shifting. writePixelsToSPI calls release() straight after its last writeByte, so a device with a Selectable could lose its final byte. Also, select() may reprogram the rate while that byte shifts. Found by code review during #5055; not reproduced, and no in-tree chipset was confirmed to set a Selectable on these classes.
Activity
fix(avr): finish the pending SPI byte before select() and release() (F…