how to write UART Interrupt handler

Hi 

I am trying to use UART from the peripheral UART example from zephyr SDK nRF connect and It is working,

But the UART is initialized in main, How do I re write the code using an interrupt handler as in when ever I give a text in my standard input (terminal) I should get the uart initialized, and the entered text from the terminal should be given to UART RX.

Thanks,

Gotak

Related