I need to enable UART1 in runtime in order to be able to read some data coming on that device.
In order to be able to use the uart functionality, I need to set CONFIG_SERIAL=y, otherwise I get compilation errors. So I wonder how can I disable all uart devices and then enable them back on runtime.
I read this thread, but when I tried to implement it for both UART0 and UART1, the application hang.
This how I try to do it:
So what am I missing?
Thank you very much for your assistance!