summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-11-05 21:44:31 -0800
committerKeith Packard <keithp@keithp.com>2009-11-05 21:44:47 -0800
commit0358988ac0ee25a564d48af79b1c3fb0c0fe0a88 (patch)
tree940d043bf39c6b020447ea557172bf6e7b7c34d7
parent4114210e0b813f4af99d0cb7755ad2ac2c4b120e (diff)
Add Watchdog Timer Control register definitions
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/cc1111.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cc1111.h b/src/cc1111.h
index ee4c9f09..e8302df2 100644
--- a/src/cc1111.h
+++ b/src/cc1111.h
@@ -536,6 +536,23 @@ sfr at 0xB6 ADCCON3;
sfr at 0xF2 ADCCFG;
/*
+ * Watchdog timer
+ */
+
+sfr at 0xc9 WDCTL;
+
+#define WDCTL_CLEAR_FIRST (0xa << 4)
+#define WDCTL_CLEAR_SECOND (0x5 << 4)
+#define WDCTL_EN (1 << 3)
+#define WDCTL_MODE_WATCHDOG (0 << 2)
+#define WDCTL_MODE_TIMER (1 << 2)
+#define WDCTL_MODE_MASK (1 << 2)
+#define WDCTL_INT_32768 (0 << 0)
+#define WDCTL_INT_8192 (1 << 0)
+#define WDCTL_INT_512 (2 << 0)
+#define WDCTL_INT_64 (3 << 0)
+
+/*
* Pin selectors, these set which pins are
* using their peripheral function
*/