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