yabo国际娱乐对话半导体客户支持- GPIO_ResetIRQ https://support.dialog-semiconductor.com/resource-keywords/gpioresetirq GPIO_ResetIRQ https://support.dialog-semiconductor.com/gpioresetirq < 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 >我需要帮助理解GPIO_ResetIRQ()调用,请。

只是为了测试它的功能,我注册GPIO回调,启用IRQ,然后立即重置IRQ(如下所示)。我在button1_press()中设置了一个断点,即使我重置了IRQ,在按下按钮中断后,回调函数仍然会被调用。那么,它会做什么呢?在SDK文档中找到的描述不是很有帮助->重置GPIOn_IRQ中断。

GPIO_RegisterCallback(GPIO1_IRQn, button1_press);
GPIO_EnableIRQ(CUST1_BTN1_PORT, CUST1_BTN1_PIN, GPIO1_IRQn, true, false, 10);
GPIO_ResetIRQ(GPIO1_IRQn);

谢谢。

Device: 
星期六,2016年7月30日01:26:01 +0000 justinturley 4323年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/gpioresetirq#comments