AnsweredAssumed Answered

Error in the type definition of "GPIO_InitTypeDef"

Question asked by mennekes.rolf on Aug 12, 2014
Latest reply on Aug 12, 2014 by Clive One
In stm32f4xx_hal_gpio.h (delete comment)
typedef struct
{
  uint32_t Pin;
  uint32_t Mode;
  uint32_t Pull;
  uint32_t Speed;
  uint32_t Alternate;
}GPIO_InitTypeDef;

But to select the alternate function you need 64 bits (4 bits for each GPIO). The register are GPIOx_AFRL and GPIOx_AFRH.

Or have I got something wrong?
I work with the latest version STM32CubeMX.

Outcomes