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.

请教28377D的SPI例程对GPIO初始化的目的

例程中给出的初始化方式是将4个引脚全部初始化为异步输入,并且开启了内部上拉。

不论是主模式还是从模式,都应该有几个引脚是输出引脚,请问为何都初始化为输入了呢?

是loopback的要求,还是有其他原因?