yabo国际娱乐对话半导体客户支持-按键 https://support.dialog-semiconductor.com/resource-keywords/key-button 按键/按钮中断停止功能几秒钟后 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/keybutton-interrupt-stop-function < 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 >亲爱的先生,< br / >我有DA14681开发工具包箴,我尝试运行演示。它的工作很好,然而,在我注册了K1引脚(端口1,引脚6)上的中断,以打开D2(橙色LED,端口1,引脚5)时,触发以下代码在演示ble_multi_link / pxp_reporter。正常工作约10~20秒,之后D12(蓝色LED)开始闪烁,最后停止闪烁,D2关闭,K1中断不再工作。请建议我应该做什么来保持中断工作。谢谢。

static void system_init(void *pvParameters)
{…hw_gpio_reserve_and_configure_pin(HW_GPIO_PORT_1, HW_GPIO_PIN_5, HW_GPIO_MODE_OUTPUT,
HW_GPIO_FUNC_GPIO,HW_WKUP_PIN_STATE_LOW);
hw_gpio_reserve_and_configure_pin(HW_GPIO_PORT_1, HW_GPIO_PIN_6, hw_gpio_state_low);HW_GPIO_MODE_INPUT, < br / > HW_GPIO_FUNC_GPIO HW_WKUP_PIN_STATE_LOW); < / p > < p > / /添加中断< br / > hw_wkup_init (NULL); < br / > hw_wkup_set_counter_threshold (1), < br / > hw_wkup_register_interrupt (wkup_intr_cb 1); < br / > hw_wkup_configure_pin (HW_GPIO_PORT_1 HW_GPIO_PIN_6,真的,HW_WKUP_PIN_STATE_LOW); < br / > hw_wkup_set_debounce_time (50); < br / >…
/*
*中断处理程序应该总是重置中断状态,否则它将被再次调用。
*/
hw_wkup_reset_interrupt();
printf("Wake up interrupt triggered %d\r\n",counter++);
hw_gpio_set_active(HW_GPIO_PORT_1,HW_GPIO_PIN_5);
}

Keywords: 
Device: 
2016年12月6日星期二09:13:16 +0000 肯庄 5004年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/keybutton-interrupt-stop-function#comments