summaryrefslogtreecommitdiff
path: root/src/cc1111.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-04-07 22:00:38 -0700
committerKeith Packard <keithp@keithp.com>2011-04-07 22:00:38 -0700
commit1a54a58d72147888f783a3caf364479efff4ed9b (patch)
tree20d3352c5cc17ac5c55ca52df63a21e95d5d73ed /src/cc1111.h
parentf28efe271f9670473249574f6bcf6e160fe58c7b (diff)
altos: Use PIO(6) on BTM to monitor BT connection. Fix BTM init.
PIo(6) appears to be an active-low indication of the Bluetooth connection status. Hook this up using an interrupt to track the link state instead of using in-band status messages. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111.h')
-rw-r--r--src/cc1111.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cc1111.h b/src/cc1111.h
index a72d7416..a07490e5 100644
--- a/src/cc1111.h
+++ b/src/cc1111.h
@@ -662,6 +662,14 @@ sfr at 0x8B P2IFG;
#define P0IFG_USB_RESUME (1 << 7)
+sfr at 0x8C PICTL;
+#define PICTL_P2IEN (1 << 5)
+#define PICTL_P0IENH (1 << 4)
+#define PICTL_P0IENL (1 << 3)
+#define PICTL_P2ICON (1 << 2)
+#define PICTL_P1ICON (1 << 1)
+#define PICTL_P0ICON (1 << 0)
+
/* GPIO pins */
sfr at 0x80 P0;