Short truth:From the pin value alone (GPIO_PIN_x) you cannot automatically get the port.You always need both: the port (GPIOA, GPIOB, …) and the pin (GPIO_PIN_5, …). CubeMX/STM32CubeIDE helps by generating macros for you. I’ll show you: 1. Where to ...

Markdown supported · ⌘↵ to post
No responses yet.