PIN_MAP in STM32 cores
Posted: Thu Feb 13, 2020 12:53 am
Hi everybody,
passing from Roger Clark to STM32 cores I've noticed there is no structure analogue to PIN_MAP present in the last one.
My problem is to get the GPIO port of a given pin referred by his macro. For example I need to get the GPIO pointer of PA12 pin.
With Clarks library the pointer is PIN_MAP[PA12].gpio_device
Is in STM32 cores an analogue struct, macro or function to get the same result?
Any help very grateful Thank you
passing from Roger Clark to STM32 cores I've noticed there is no structure analogue to PIN_MAP present in the last one.
My problem is to get the GPIO port of a given pin referred by his macro. For example I need to get the GPIO pointer of PA12 pin.
With Clarks library the pointer is PIN_MAP[PA12].gpio_device
Is in STM32 cores an analogue struct, macro or function to get the same result?
Any help very grateful Thank you