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.

Starterware/AM3358: Use strncmp() and strstr() in interrupt context?

Genius 5820 points
Part Number: AM3358

Tool/software: Starterware

When the time these functions would use is not an issue: can strncmp() and strstr() be used within an interrupt service routine? Or will this cause problems?

  • qxc,

    Is it a timing concern that you have? I see no reason why you cannot call a strncmp() and strstr within an ISR. Of course the execution of these functions is highly data dependent. Can you benchmark the expected strings to see how long it would take? How often are you getting interrupts in your scenario?

    Lali