AnsweredAssumed Answered

Reorganization of Cube headers

Question asked by borgonovo.ivan_sergi on Feb 28, 2016
Latest reply on Feb 29, 2016 by Amel N
It would be nice if you could move into a header the definition of GPIO_MODE, GPIO_MODE, ... GPIO_CR_CNF_ANALOG, GPIO_CR_MODE_INPUT, GPIO_CR_CNF_ANALOG, ...GPIO_CR_CNF_AF_OUTPUT_OD currently in stm32fNxx_hal_gpio.c

These definitions may be useful to automatically generate configuration functions with external tools.
CubeMX does a great job if you've to configure pins once but HAL_GPIO_Init() may be not as efficient as it has to be if you've to switch GPIO configuration in the middle of an interrupt and assigning pin functions manually is so '90 and is terribly error prone.

Having to cut&paste code from stm32fNxx_hal_gpio.c is annoying and error prone as well.

thanks

Outcomes