yabo国际娱乐对话半导体客户支持- DA1468x GPIO休眠 https://support.dialog-semiconductor.com/resource-keywords/da1468x-gpio-sleep GPIO pad latch enable https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/gpio-pad-latch-enable < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >你好< / p > < p >门闩的正确方法是什么GPIO销(开发工具包LED D2) so that it's state is retained during sleep?
I've tried using hw_cpm_activate_pad_latches(), however it still doesn't work. The current code flow is as follows:

hw_cpm_deactivate_pad_latches(); // allow pins to be changed
hw_gpio_set_active(LED_PORT, LED_PIN); // turn on LED
...
fflush(stdout); // empty buffer before latching pins and sleeping
hw_cpm_activate_pad_latches(); // latch pins before sleeping
// sleep here

Thanks!

Device: 
2017年2月21日星期二12:17:51 +0000 edwardwhite 5463年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/gpio-pad-latch-enable#comments