altos: Fix broken EXTI edge mode selections. Clear pending exti on enable
authorKeith Packard <keithp@keithp.com>
Sat, 2 Jun 2012 23:54:42 +0000 (16:54 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 2 Jun 2012 23:54:42 +0000 (16:54 -0700)
commit64e2e66a5239541b15f43172655cfb3560bec79b
treebd671a5f338cb780064e6d3177e2d0416b6de81d
parent8d425ffba84ec6f632e8c0d44105de73242a86a9
altos: Fix broken EXTI edge mode selections. Clear pending exti on enable

Make sure the edge mode registers are set according to the requested
mode.

Clear any pending interrupt when enabling to avoid spurious isr call

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_exti_stm.c