summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-10-23 15:24:02 -0700
committerKeith Packard <keithp@keithp.com>2011-10-23 15:24:02 -0700
commit8e4cceedb5b758faae684978299e667c4bb06f4d (patch)
treeea26f608b7663c84d6b1bc47af203de5db676e6c
parent90e738a3379d258a48a7c92f6708040fc39c373a (diff)
altos: Flip button IRQ initialization around
This matches what the docs suggest Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/cc1111/ao_button.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cc1111/ao_button.c b/src/cc1111/ao_button.c
index 547d71ac..3516d559 100644
--- a/src/cc1111/ao_button.c
+++ b/src/cc1111/ao_button.c
@@ -76,11 +76,11 @@ ao_button_init(void)
* Set P0 interrupts to falling edge
*/
- PICTL |= PICTL_P2IEN | PICTL_P0IENH | PICTL_P2ICON | PICTL_P0ICON;
-
/* Enable interrupts for P0 inputs */
IEN1 |= IEN1_P0IE;
/* Enable interrupts for P2 inputs */
IEN2 |= IEN2_P2IE;
+
+ PICTL |= PICTL_P2IEN | PICTL_P0IENH | PICTL_P2ICON | PICTL_P0ICON;
}