Hi,
Can i call user defined functions and library functions like strlen(), strcpy() in UART ISR? If no please give me the reason.
Thanks
Shridhar Kulkarni
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Can i call user defined functions and library functions like strlen(), strcpy() in UART ISR? If no please give me the reason.
Thanks
Shridhar Kulkarni
Hello Shridhar
Yes, you can call strlen. You would have to modify one of the existing examples like sd_card to do the necessary.
Regards
Amit
Hello Amit,
Where is the point of modifying existing examples like sd_card, i am talking of implementing in our project. I have called user defined function in ISR and in that am calling strlen(), strcpy() function, is it ok to call like this or it will create any problems in future, now it is working fine.
Regards
Shridhar Kulkarni
Hello Sridhar,
I am not sure what you want to be doing with strlen and strcpy, as I am not aware of how you intend to use it in the ISR. That is the reason why I have mentioned the existing example to be used as a reference.
Regards
Amit