UART & Serial Driver switching at run time
Posted: Sat Aug 04, 2018 11:02 am
Hi all,
I am using STM32F4 in my project.
Is there any way to switch serial port between "Serial Driver" & "UART Driver" at run time?
i.e Initially I want to initialize uart2 as "UARTD2". Then want to change it to "SD2". But as we need to configure/define serial ports in "mcuconfig.h", the configuration remains same untill program ends.
So is there any way to switch at run time?
I am using STM32F4 in my project.
Is there any way to switch serial port between "Serial Driver" & "UART Driver" at run time?
i.e Initially I want to initialize uart2 as "UARTD2". Then want to change it to "SD2". But as we need to configure/define serial ports in "mcuconfig.h", the configuration remains same untill program ends.
So is there any way to switch at run time?