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.

InitGpio()中已初始化为零的寄存器还需要再写一遍吗?



InitGpio()的注释是说把所有的GPIO设置成输入上拉,那么当自己程序需要使用某GPIO时,是不是只需要设置寄存器不为零的,比如设置成输出,或禁用上拉,或复用其他功能,而原本已经被初始化的寄存器是不是就不用再写一遍啊?