stm32f469_gfx/src/hw/core/i2c.c
void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c)
{

  if (hi2c->Instance == I2C1)
  {
    /*##-1- Reset peripherals ##################################################*/
    __HAL_RCC_I2C1_FORCE_RESET();
    __HAL_RCC_I2C1_RELEASE_RESET();

    /*##-2- Disable peripherals and GPIO Clocks #################################*/
    /* Configure I2C Tx as alternate function  */
    HAL_GPIO_DeInit(GPIOB, GPIO_PIN_8);
    /* Configure I2C Rx as alternate function  */
    HAL_GPIO_DeInit(GPIOB, GPIO_PIN_9);

      /*##-3- Disable the NVIC for I2C ##########################################*/
    HAL_NVIC_DisableIRQ(I2C1_ER_IRQn);
    HAL_NVIC_DisableIRQ(I2C1_EV_IRQn);
  }
}
/**
  * @brief I2C MSP De-Initialization
  *        This function frees the hardware resources used in this example:
  *          - Disable the Peripheral's clock
  *          - Revert GPIO and NVIC configuration to their default state
  * @param hi2c: I2C handle pointer
  * @retval None
  */
@brief I2C MSP De-Initialization
This function frees the hardware resources used in this example:
- Disable the Peripheral's clock
- Revert GPIO and NVIC configuration to their default state
@param hi2c: I2C handle pointer
@retval None
@brief I2C MSP De - Initialization This function frees the hardware resources used in this example : - Disable the Peripheral ' s clock - Revert GPIO and NVIC configuration to their default state @param hi2c : I2C handle pointer @retval None
void HAL_I2C_MspDeInit(I2C_HandleTypeDef *hi2c)
{
  if (hi2c->Instance == I2C1)
  {
    __HAL_RCC_I2C1_FORCE_RESET();
    __HAL_RCC_I2C1_RELEASE_RESET();
    HAL_GPIO_DeInit(GPIOB, GPIO_PIN_8);
    HAL_GPIO_DeInit(GPIOB, GPIO_PIN_9);
    HAL_NVIC_DisableIRQ(I2C1_ER_IRQn);
    HAL_NVIC_DisableIRQ(I2C1_EV_IRQn);
  }
}
void HAL_I2C_MspDeInit ( I2C_HandleTypeDef * hi2c ) { if ( hi2c -> Instance == I2C1 ) { __HAL_RCC_I2C1_FORCE_RESET ( ) ; __HAL_RCC_I2C1_RELEASE_RESET ( ) ; HAL_GPIO_DeInit ( GPIOB , GPIO_PIN_8 ) ; HAL_GPIO_DeInit ( GPIOB , GPIO_PIN_9 ) ; HAL_NVIC_DisableIRQ ( I2C1_ER_IRQn ) ; HAL_NVIC_DisableIRQ ( I2C1_EV_IRQn ) ; } }
@brief I2C MSP De-Initialization
        This function frees the hardware resources used in this example:
          - Disable the Peripheral's clock
          - Revert GPIO and NVIC configuration to their default state
 @param hi2c: I2C handle pointer
 @retval None
@brief I2C MSP De - Initialization This function frees the hardware resources used in this example : - Disable the Peripheral ' s clock - Revert GPIO and NVIC configuration to their default state @param hi2c : I2C handle pointer @retval None
/*##-1- Reset peripherals ##################################################*/ /*##-2- Disable peripherals and GPIO Clocks #################################*/ /* Configure I2C Tx as alternate function  */ /* Configure I2C Rx as alternate function  */ /*##-3- Disable the NVIC for I2C ##########################################*/