Multiple on-the-fly changeable pinout configurations for single periphery
Hi. Is it possible to generate code with CubeMX for multiple configurations, which can be initialized on-the-fly?
Example:
I have only one UART available, e.g. UART1, which can be connecrted directly via RS232 voltage translator, or when USB VBUS voltage is detected, I would like to route UART1 to (external) USB/UART bridge. To spare glue logic I would like to use different pin mapping. Within CubeMX I can configure only one pinout for UART1. Is there any option to configure single periphery (UART1) to more than one pinout configuration?
Thanks.
Marko