1. 修改gpio中断没有清标志位的问题

This commit is contained in:
LiuJX 2018-02-08 23:54:55 +08:00
parent 84a44e58dd
commit 24fb0a3656
1 changed files with 1 additions and 1 deletions

View File

@ -754,7 +754,7 @@ INIT_BOARD_EXPORT(stm32_hw_pin_init);
rt_inline void pin_irq_hdr(int irqno) rt_inline void pin_irq_hdr(int irqno)
{ {
EXTI_ClearITPendingBit(pin_irq_map[irqno].irqno); EXTI_ClearITPendingBit(pin_irq_map[irqno].irqbit);
if(pin_irq_hdr_tab[irqno].hdr) if(pin_irq_hdr_tab[irqno].hdr)
{ {
pin_irq_hdr_tab[irqno].hdr(pin_irq_hdr_tab[irqno].args); pin_irq_hdr_tab[irqno].hdr(pin_irq_hdr_tab[irqno].args);