请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TM4C123GH6PM 我已经制作了一个代码,它从 cos 和 sin 函数中获取输入。不幸的是,代码运行异常,我使用了 math.h 和 stdlib,代码在 c 中运行良好,但在 tm4c123ghpm 中运行良好。
sig->Real =a * sine (w*i + phase);
当我执行该行代码时、停止、但当我注释此代码时、效果良好。
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.
我已经制作了一个代码,它从 cos 和 sin 函数中获取输入。不幸的是,代码运行异常,我使用了 math.h 和 stdlib,代码在 c 中运行良好,但在 tm4c123ghpm 中运行良好。
sig->Real =a * sine (w*i + phase);
当我执行该行代码时、停止、但当我注释此代码时、效果良好。