From 4433b5cf5b5dffa26d5cd2699ad7face779f2675 Mon Sep 17 00:00:00 2001 From: Oliver Hahm Date: Mon, 5 Nov 2012 18:43:03 -0500 Subject: [PATCH] [cpu cc430 gpioint] * some improvements to the debouncing --- cpu/cc430/cc430-gpioint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu/cc430/cc430-gpioint.c b/cpu/cc430/cc430-gpioint.c index 460d2a487..56cdbf151 100644 --- a/cpu/cc430/cc430-gpioint.c +++ b/cpu/cc430/cc430-gpioint.c @@ -180,7 +180,6 @@ interrupt (PORT1_VECTOR) __attribute__ ((naked)) port1_isr(void) { cb[0][ifg_num](); } } - P1IFG = 0x00; P1IE = int_enable; __exit_isr(); @@ -223,6 +222,9 @@ interrupt (PORT2_VECTOR) __attribute__ ((naked)) port2_isr(void) { cb[1][ifg_num](); } } + else { + cb[1][ifg_num](); + } P2IFG = 0x00; P2IE = int_enable;