Add Watchdog Timer Control register definitions
authorKeith Packard <keithp@keithp.com>
Fri, 6 Nov 2009 05:44:31 +0000 (21:44 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 6 Nov 2009 05:44:47 +0000 (21:44 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111.h

index ee4c9f09b38d7b66e1b275f07a26a79636be11ad..e8302df240736848d8800d84f111c77eba15170c 100644 (file)
@@ -535,6 +535,23 @@ sfr at 0xB6 ADCCON3;
  */
 sfr at 0xF2 ADCCFG;
 
  */
 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
 /*
  * Pin selectors, these set which pins are
  * using their peripheral function