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.

[参考译文] LAUNCHXL-F280049C:IDIV0编译器选项和 driverlib gpio.h

Guru**** 2463330 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1494582/launchxl-f280049c-idiv0-compiler-option-and-driverlib-gpio-h

器件型号:LAUNCHXL-F280049C

工具/软件:

我遇到了类似的问题。 IDIV0启用编译器选项后、GPIO 停止工作。 在本例中、GPIO 切换通过driverlibgpio.h进行。 仔细检查后、我发现位移操作始终返回1。 我怀疑同一行中的模数32运算可能是根本原因。 但到底是什么导致了这种行为,如何才能解决呢?