Switched RDY pin to open/drain to simplify hardware design

This commit is contained in:
2021-06-03 21:45:48 +02:00
parent a6c4565434
commit 612161f175
3 changed files with 5 additions and 4 deletions

View File

@@ -312,7 +312,7 @@ static void MX_I2C1_Init(void)
hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
hi2c1.Init.OwnAddress2 = 0;
hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_ENABLE;
if (HAL_I2C_Init(&hi2c1) != HAL_OK)
{
Error_Handler();
@@ -420,7 +420,7 @@ static void MX_GPIO_Init(void)
/*Configure GPIO pin : RDY_Pin */
GPIO_InitStruct.Pin = RDY_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_OD;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(RDY_GPIO_Port, &GPIO_InitStruct);