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.

[参考译文] CC1310:分配了一个引脚、然后又分配了一个引脚、其状态是什么?

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

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1166437/cc1310-a-pin-is-assigned-and-then-unassigned-what-is-its-state

器件型号:CC1310

大家好、

以下是客户的请求:

客户在   tirtos_cc13xx_cc26xx_setupwin32_2_21_01_08的 CC1310_LAUNCHXL.c 中找到此类注释:

/*
 * ========================================= IO 驱动程序初始化===========================
 * 在 main 中、应调用 PIN_init (BoardGpioInitTable)以设置安全
 此 板的*设置。
 * 当分配引脚然后取消分配时、它将恢复到状态
 * 在该表中配置。
 *
他感到困惑   的是、在 uartCC26XHWAttrs 结构中将 DIO4设置为串行端口的 TX 引脚、然后在 BoardGpioInitTable 中将 DIO4设置为输入上拉模式、以及在主函数中执行 PIN_init (BoardGpioInitTable)。  然后打开串行端口并发送数据。 数据传输完成后、关闭串行端口。 此时、DIO4是否会自动返回上拉输入模式?

您可以帮助检查此案例吗? 谢谢。

此致、                                                        

Nick     

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

    您好、Nick、

    没错。 如果客户修改 了 BoardGpioInitTable、则当使用 UART_close()关闭 UART 驱动程序时、该引脚将恢复为 BoardGpioInitTable 中指定的配置。

    此致、

    高斯图