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:在中断上下文中使用 strncmp()和 strstrstr()?

Guru**** 2609285 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/584086/starterware-am3358-use-strncmp-and-strstr-in-interrupt-context

器件型号:AM3358

工具/软件:Starterware

当这些函数使用的时间不是问题时:strncmp()和 strstrstr()是否可以在中断服务例程中使用? 还是会导致问题?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    qxc、

    这是您的时序问题吗? 我没有理由不能在 ISR 中调用 strncmp()和 strstr。 当然、这些函数的执行高度依赖于数据。 您能否对预期的字符串进行基准测试、以了解需要多长时间? 您在方案中获得中断的频率如何?

    Lali