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
fix(sam3x): SAMHardwareSPIOutput::writeBit may not reach the pads, and warning push/pop is unbalanced #5117
Found in review of #5046, from reading the code and my understanding of the PIO controller. Not reproduced on hardware.
init() gives the data and clock pins to peripheral A with PIO_Configure(PIO_PERIPH_A). writeBit drives them through PIO registers without returning them to PIO control, so the bits may not reach the pads. SM16716Controller::writeHeader depends on this. The SAMD writer in the same file reclaims the pins with pinMode and restores them with pinPeripheral.
In fastspi_arm_sam.h, FL_DISABLE_WARNING_POP runs on every target, but the matching PUSH is inside the SAMD guard.
Activity
fix(sam3x): hand SPI pins to the PIO in writeBit and balance the warn…