AnsweredAssumed Answered

CPAL_I2C_HAL_GPIODeInit(...) can fail

Question asked by dyhrberg.matthew on Dec 17, 2013
Latest reply on Dec 17, 2013 by dyhrberg.matthew
In version 1.2.0 of the CPAL I2C library, function CPAL_I2C_HAL_GPIODeInit(...) can fail when it calls the Standard Peripheral Library function GPIO_Init (...) due to  GPIO_InitStructure.GPIO_PuPd not being initialized.

Suggest adding GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; prior to the first call to GPIO_Init(...) (line 269 in cpal_i2c_hal_stm32F2xx.c)

Outcomes