stm32: support SPI on L4 series

This commit is contained in:
Kenneth Bell
2021-04-11 08:28:04 -07:00
committed by Ron Evans
parent b9043b649d
commit 25f3adb47e
9 changed files with 138 additions and 12 deletions
+4
View File
@@ -184,6 +184,10 @@ type SPI struct {
AltFuncSelector uint8
}
func (spi SPI) config8Bits() {
// no-op on this series
}
// Set baud rate for SPI
func (spi SPI) getBaudRate(config SPIConfig) uint32 {
var conf uint32