2014-08-12 11:55 AM
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-init2014-08-12 12:58 PM
Or have I got
something wrong
? This is a configuration structure, not a peripheral register.