Search found 1 match

by baijian.ying
2022年 Nov 15日 16:55
Forum: TuyaOS-蓝牙设备开发
Topic: 【已解决】ty_system_enter_sleep,无法唤醒
Replies: 2
Views: 902

Re: 【求助】ty_system_enter_sleep,无法唤醒

唤醒引脚的配置,按照如下修改:
pmu_set_port_mux(GPIO_PORT_D, GPIO_BIT_4, PMU_PORT_MUX_GPIO);
pmu_set_pin_to_PMU(GPIO_PORT_D, BIT(4));
pmu_set_pin_dir(GPIO_PORT_D, BIT(4), GPIO_DIR_IN);
pmu_set_pin_pull(GPIO_PORT_D, BIT(4), true);
pmu_port_wakeup_func_set(GPIO_PD4);