Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PeYu_4639956
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

在使用CYW20706A2做GPIO测试时,发现P38/P32管脚已经默认用作休眠唤醒模式,请问怎样配置才能正常用作GPIO输入输出测试?

1 Solution

请使用下面的code配置:

wiced_hal_gpio_configure_pin( WICED_GPIO_01, GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_HIGH);

wiced_hal_gpio_set_pin_output(WICED_GPIO_01, GPIO_PIN_OUTPUT_HIGH);

View solution in original post

0 Likes
4 Replies
Owen_Zhang123
Moderator
Moderator
Moderator
500 solutions authored 250 sign-ins 1000 replies posted

这个引脚无法正常配置高低电平吗?

0 Likes

P38是正常的,之前测试看错了,问题是在P32。每次上电后,P32无法输出/输入高电平,按开发板复位键复位或调用wdog_generate_hw_reset()复位后,P32才可以输入/输出高电平。

0 Likes

请使用下面的code配置:

wiced_hal_gpio_configure_pin( WICED_GPIO_01, GPIO_OUTPUT_ENABLE, GPIO_PIN_OUTPUT_HIGH);

wiced_hal_gpio_set_pin_output(WICED_GPIO_01, GPIO_PIN_OUTPUT_HIGH);

0 Likes

可以了,能帮忙讲解一下为什么要这样配置吗?

0 Likes