feather-stm32f405: add SPI support (#1377)

* machine/stm32f405: add SPI support
This commit is contained in:
ardnew
2020-10-02 13:05:58 -05:00
committed by GitHub
parent 431e51b8a0
commit 9ad2315079
3 changed files with 136 additions and 42 deletions
+16
View File
@@ -178,6 +178,22 @@ const (
SPI_SDO_PIN = SPI0_SDO_PIN //
)
var (
SPI1 = SPI{
Bus: stm32.SPI2,
AltFuncSelector: stm32.AF5_SPI1_SPI2,
}
SPI2 = SPI{
Bus: stm32.SPI3,
AltFuncSelector: stm32.AF6_SPI3,
}
SPI3 = SPI{
Bus: stm32.SPI1,
AltFuncSelector: stm32.AF5_SPI1_SPI2,
}
SPI0 = SPI1
)
func initSPI() {}
// -- I2C ----------------------------------------------------------------------