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.

GPIO 问题

需要配置一个GPIO口为输入口,首先在SYSCFG里配置为通用IO口(GPIO7_7),如图1所示;

                                                                                  图1

然后我想配置为 输入,但是通过寄存器观察,仍然为输出口,如图2 所示,请问问题可能出现在哪里?

以下是输入输出方向配置的代码,求大神帮忙看看问题在哪儿。

接上图

主函数中调用复用和方向配置子函数