Compare commits

...

2 Commits

Author SHA1 Message Date
soypat d01d85930d rp2040: add spi busy waits on read and read/write transactions 2023-06-11 22:24:26 +02:00
Ayke van Laethem ac821d8295 goenv: fix version number to 0.28.1 (without -dev) 2023-06-11 18:56:38 +02:00
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import (
// Version of TinyGo. // Version of TinyGo.
// Update this value before release of new version of software. // Update this value before release of new version of software.
const Version = "0.28.0-dev" const Version = "0.28.1"
var ( var (
// This variable is set at build time using -ldflags parameters. // This variable is set at build time using -ldflags parameters.
+6 -1
View File
@@ -368,6 +368,9 @@ func (spi SPI) rx(rx []byte, txrepeat byte) error {
continue continue
} }
} }
for spi.isBusy() {
gosched()
}
return nil return nil
} }
@@ -397,6 +400,8 @@ func (spi SPI) txrx(tx, rx []byte) error {
// Transaction ended early due to timeout // Transaction ended early due to timeout
return ErrSPITimeout return ErrSPITimeout
} }
for spi.isBusy() {
gosched()
}
return nil return nil
} }