[add] soft i2c rewrite
This commit is contained in:
@@ -71,8 +71,8 @@ void MX_GPIO_Init(void)
|
||||
|
||||
/*Configure GPIO pins : SDA_Pin SCL_Pin */
|
||||
GPIO_InitStruct.Pin = SDA_Pin|SCL_Pin;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_OD;
|
||||
GPIO_InitStruct.Pull = GPIO_PULLUP;
|
||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
||||
HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user