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.

[参考译文] TM4C1294NCPDT:如何将 GPIO 输入配置为具有内部弱上拉电阻?

Guru**** 2577385 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/812320/tm4c1294ncpdt-how-do-i-config-a-gpio-input-to-have-internal-weak-pull-up

器件型号:TM4C1294NCPDT

我可以使用哪个函数将 GPIO 输入配置为具有内部弱上拉电阻? 谢谢

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

    使用 GPIOPadConfigSet()函数。 当引脚为输入时、输出强度无关紧要。 示例:

    GPIOPadConfigSet (GPIO_PORTJ_BASE、GPIO_PIN_0、GPIO_Strength _2mA、GPIO_PIN_TYPE_STD_WPU);