stm32: fix i2c and add stm32f407 i2c

This commit is contained in:
Kenneth Bell
2021-02-21 22:38:33 -08:00
committed by Ron Evans
parent 24976a6974
commit 66f76833ad
4 changed files with 99 additions and 15 deletions
+12
View File
@@ -66,3 +66,15 @@ var (
}
SPI1 = &SPI0
)
const (
I2C0_SCL_PIN = PB6
I2C0_SDA_PIN = PB9
)
var (
I2C0 = I2C{
Bus: stm32.I2C1,
AltFuncSelector: AF4_I2C1_2_3,
}
)