spi: remove machine.SPI and replace with drivers.SPI interface for almost all SPI drivers

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2020-10-18 18:03:12 +02:00
parent e376785596
commit 39e9e209ec
23 changed files with 135 additions and 124 deletions
+7
View File
@@ -0,0 +1,7 @@
package drivers
// SPI represents a SPI bus. It is implemented by the machine.SPI type.
type SPI interface {
Tx(w, r []byte) error
Transfer(b byte) (byte, error)
}