Associate II
December 22, 2021
Solved
STM32CubeMx Code generation inconvenient
- December 22, 2021
- 2 replies
- 864 views
STM32CubeMx will generate the code as below.
HAL_GPIO_EXTI_IRQHandler (GPIO_OUTPUT_PA0_Pin);
But I want it to be generated as follows:
HAL_GPIO_EXTI_IRQHandler (PB0_EXTI0_Pin);
or
HAL_GPIO_EXTI_IRQHandler (GPIO_PIN_0);
The user label of the pin assigned to the interrupt is replaced with the user label of another pin.
