# HG changeset patch # User ideenmodellierer # Date 1563396091 -7200 # Node ID abec171c2c4bda1a5dc9388d4bbc4fca7cce4bbc # Parent 2559a3f0f1f257bddda296a6121871301dd26f4d Deactivated internal pullups and I2C interrupt callback Internal GPIO should be configurated to no pull to avoid interferance with external electronic. The interrupt functionality is no longer in used and the callbacks are empty => uncommented enables diff -r 2559a3f0f1f2 -r abec171c2c4b Small_CPU/Src/stm32f4xx_hal_msp_v3.c --- a/Small_CPU/Src/stm32f4xx_hal_msp_v3.c Mon Jul 01 14:18:39 2019 +0000 +++ b/Small_CPU/Src/stm32f4xx_hal_msp_v3.c Wed Jul 17 22:41:31 2019 +0200 @@ -110,7 +110,7 @@ /* I2C TX GPIO pin configuration */ GPIO_InitStruct.Pin = I2Cx_SCL_PIN; GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - GPIO_InitStruct.Pull = GPIO_PULLUP; + GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FAST; GPIO_InitStruct.Alternate = I2Cx_SCL_AF; @@ -124,10 +124,14 @@ /*##-3- Configure the NVIC for I2C #########################################*/ /* NVIC for I2C1 */ + + /* The callbacks are not used => no need to activate the interrupts */ + /* HAL_NVIC_SetPriority(I2Cx_ER_IRQn, 1, 2); HAL_NVIC_EnableIRQ(I2Cx_ER_IRQn); HAL_NVIC_SetPriority(I2Cx_EV_IRQn, 1, 3); HAL_NVIC_EnableIRQ(I2Cx_EV_IRQn); +*/ } /**