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

Parents Reply
  • Hi AHaug,

    No, I don't want to limit my input only to those 10 seconds. My code is not working properly initially so I have given some delay and when I give input during that delay time then only the code is working smoothly but in this way it is limiting my input. 

    So, I have inserted a while loop in the man to resolve this issue. Good thing it has resolved.

    Thanks,

    Gotak

Children
No Data
Related