mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
stm32 add SPI for stm32f4
This commit is contained in:
+9
-1
@@ -1,9 +1,17 @@
|
||||
// +build !baremetal sam stm32,!stm32f407 fe310
|
||||
// +build !baremetal sam stm32 fe310
|
||||
|
||||
package machine
|
||||
|
||||
import "errors"
|
||||
|
||||
// SPI phase and polarity configs CPOL and CPHA
|
||||
const (
|
||||
Mode0 = 0
|
||||
Mode1 = 1
|
||||
Mode2 = 2
|
||||
Mode3 = 3
|
||||
)
|
||||
|
||||
var (
|
||||
ErrTxInvalidSliceSize = errors.New("SPI write and read slices must be same size")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user