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-TMS57004:使用 SPI2nCS[0]作为 GPIO

Guru**** 2296490 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/838762/compiler-launchxl-tms57004-using-the-spi2ncs-0-as-an-gpio

器件型号:LAUNCHXL-TMS57004
主题中讨论的其他器件:HALCOGEN

工具/软件:TI C/C++编译器

您好!

我想将 SPI2nCS[0]用作 GPIO。

在 LaunchPad 的文档中、可以这样做、但我不知道如何调整引脚。

例如,我可以使用寄存器 gioPORTA->DIR 来设置引脚的方向,使用 gioPORTA->DOUT 来设置引脚的值。

如何通过 SPI2nCS[0]引脚实现这一点?

提前感谢您。

此致、

Christian