generate correct stm32 pin configuration