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.

[参考译文] Starterware/STARTERWARE-Sitara:GPIO 引脚毫无理由设置为高电平

Guru**** 2595805 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/585358/starterware-starterware-sitara-gpio-pin-set-high-with-no-reason

器件型号:STARTERWARE-Sitara

工具/软件:Starterware

大家好、

我需要你的帮助! 我不知道我做了什么错误、但这让我感到疯狂、所以请帮助我。

我正在尝试设置 PWM 模块、但我注意到在使用任何 PWM 相关函数之前发生了一些非常疯狂的事情。
使用以下代码(仅此代码)、我在 BeagleBone White 的引脚34 (@P8接头)中测量3.3V 电压。

GPIO1ModuleClkConfig ();
GpioModuleEnable (SOC_GPIO_1_regs);
GpioPinMuxSetup (GPIOP8_34、6);
GPIODirModeSet (SOC_GPIO_1_regs、 GPIO_PIN_NUMBER_A、GPIO_DIR_OUTPUT); 

上述所有参数均定义为:

#define GPIOP8_34 (GPIO_2_17) //(在 starterware 的 pin_mux.h 文件中定义 GPIO_2_17)
#define GPIO_PIN_NUMBER_A (17) 

(在 soc_AM335x.h 中定义了 SOC_GPIO_1_regs、在 Starterware 的 gpio_v2.h 文件中定义了 GPIO_DIR_output)。

这是怎么可能的???
我是说上述功能不应该将 上述引脚设为高电平、为什么会发生这种情况、我该怎么办?

提前感谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Maneedos、
    我们将对此进行研究、并将返回给您。

    Lali