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.

[参考译文] TMS570LC4357:将 MIBSPI2 CSN0配置为 GIO

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1460516/tms570lc4357-configuring-mibspi2-csn0-as-gio

器件型号:TMS570LC4357
主题中讨论的其他器件:HALCOGEN

工具与软件:

在 halcogen 中、我已将 MIBSPI2 CSN0配置为 GIO 输出、并遵循上一个线程中的指令。

不过、我很难在代码中驱动它。

gioSetBit (mibspiREG2、0、1)警告 mibspiREG2与参数类型 gioPORT_t 不兼容

我在运行代码时未看到 IO 状态发生任何变化。

谢谢

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

    尊敬的 David:

    "我不知道你在说什么。"

    我认为您应该使用 mibspiPORT2而不是  mibspiREG2、请参考以下示例代码一次:

    ——
    谢谢、此致、
    Jagadish。