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.
在 I2C 模块调试期间、有时我会在错误状态下停止 I2C 通信。 当我重新加载项目并重新启动时、程序将挂起
while (I2CMasterBusy (I2C2_base));
即使是以下情况也无法使其摆脱麻烦
SysCtlPeripheralDisable (SYSCTL_Periph_I2C2);
SysCtlPeripheralReset (SYSCTL_Periph_I2C2);
SysCtlPeripheralEnable (SYSCTL_Periph_I2C2);
只有回收电源才能使其摆脱这种混乱。
启动程序时如何复位 I2C 模块?