Question
Error in the type definition of ''GPIO_InitTypeDef''
Posted on August 12, 2014 at 20:55
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
.
#gpio-init