Adjust I2C pins configuration: disable pullup and set speed to low (#352)

* Adjust I2C pins configuration: disable pullup and set speed to low
* promote i2c owner

Co-authored-by: aanper <mail@s3f.ru>
This commit is contained in:
あく 2021-02-25 12:50:57 +03:00 committed by GitHub
parent 3668bb40d2
commit a0db2986b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

3
.github/CODEOWNERS vendored
View file

@ -50,6 +50,9 @@ firmware/targets/f4/api-hal/api-hal-vcp.c @skotopes
firmware/targets/f4/api-hal/api-hal.c @DrZlo13
firmware/targets/f4/api-hal/api-interrupts.c @DrZlo13
firmware/targets/f4/Src/i2c.c @skotopes
firmware/targets/f5/Src/i2c.c @skotopes
# BLE
firmware/targets/f4/ble-glue/** @skotopes

View file

@ -75,8 +75,8 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle)
*/
GPIO_InitStruct.Pin = I2C_SCL_Pin|I2C_SDA_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

View file

@ -75,8 +75,8 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle)
*/
GPIO_InitStruct.Pin = I2C_SCL_Pin|I2C_SDA_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Pull = GPIO_PULLUP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);