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.

[参考译文] MSPM0L1306:IOMUX 驱动程序库 PIN 初始化

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1500300/thread

器件型号:MSPM0L1306

工具/软件:

您好的团队、

我想确认以下 IOMUX INIT 数字输出库。

这里指出"GPIO 功能始终是一个引脚功能0x00000001、但我不理解这是什么意思。

当我在 TRM 中检查 IOMUX 寄存器的时、我认为这是外设功能的设置、但我不知道为什么应将其设置为0x00000001。

您能帮我理解吗?

__STATIC_INLINE void DL_GPIO_initDigitalOutput(uint32_t pincmIndex)
{
    /* GPIO functionality is always a pin function of 0x00000001 */
    IOMUX->SECCFG.PINCM[pincmIndex] =
        (IOMUX_PINCM_PC_CONNECTED | ((uint32_t) 0x00000001));
}

此致、

Kenley

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

    尊敬的 Kenley:

    请参阅数据表中的引脚属性一章。 引脚数字功能之后的数字是 PF 寄存器中的寄存器设置。 1是 GPIO 的正常使用方式。 例如、如果您想将 PA0用作 UART1_TX 函数、请参阅其 PF 设为2。

    此致、

    Zoey

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

    您好、Zoey、

    已注意。 谢谢你。

    此致、

    Kenley