mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
Fix SPI on stm32f103
This commit is contained in:
@@ -358,7 +358,7 @@ func (spi SPI) getBaudRate(config SPIConfig) uint32 {
|
||||
default:
|
||||
conf |= stm32.SPI_CR1_BR_Div256
|
||||
}
|
||||
return conf
|
||||
return conf << stm32.SPI_CR1_BR_Pos
|
||||
}
|
||||
|
||||
// Configure SPI pins for input output and clock
|
||||
|
||||
Reference in New Issue
Block a user