TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320F28374D: 库文件F2837xD_Gpio.c中GPIO初始化函数void InitGpio()的问题

Part Number:TMS320F28374DOther Parts Discussed in Thread:C2000WARE

调用库的版本为C2000Ware_3_04_00_00_Software,F2837xD_Gpio.c中,void InitGpio()的注释为将GPIO配置为输入引脚,并且使能内部上拉,而实际配置寄存器时,好像没有配置内部上拉的步骤,是我理解上有问题还是注释有错误

Yale Li:

您好,我已经向相关人员咨询,有了结果会第一时间回复。

,

jisong Wang:

请问有结果了吗?

,

Yale Li:

How I understand it is that the first comment says that all GPIO pins are by default set to input with pull-ups enabled. The second comment seems to be referring to the fact that there's a way to avoid doing this for all pins, or a 'hack', which is for when the user maybe does not want pull-ups enabled by default. Looking at the code in the file, it seems you can change the default to something else within that for-loop. I have not tested it before, but that's what it appears to be.

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F28374D: 库文件F2837xD_Gpio.c中GPIO初始化函数void InitGpio()的问题
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1