rp2040: add spi busy waits on read and read/write transactions

This commit is contained in:
soypat
2023-06-11 15:03:45 -03:00
committed by Ayke
parent ac821d8295
commit d01d85930d
+6 -1
View File
@@ -368,6 +368,9 @@ func (spi SPI) rx(rx []byte, txrepeat byte) error {
continue
}
}
for spi.isBusy() {
gosched()
}
return nil
}
@@ -397,6 +400,8 @@ func (spi SPI) txrx(tx, rx []byte) error {
// Transaction ended early due to timeout
return ErrSPITimeout
}
for spi.isBusy() {
gosched()
}
return nil
}