minor renaming
authoreb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 17 Feb 2009 19:52:12 +0000 (19:52 +0000)
committereb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 17 Feb 2009 19:52:12 +0000 (19:52 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10456 221aa14e-8319-0410-a670-987f0aec2ac5

usrp2/firmware/apps/app_common_v2.c
usrp2/firmware/lib/memory_map.h

index 62e54f9a0083aedef533fa308277a22283134fb8..60fa63ee3429236a5a82763989c928f485573e67 100644 (file)
@@ -58,9 +58,9 @@ static bool
 sync_every_pps(const op_generic_t *p)
 {
   if (p->ok)
-    timesync_regs->tick_control |= TSC_EVERYPPS;
+    timesync_regs->tick_control |= TSC_TRIGGER_EVERYPPS;
   else
-    timesync_regs->tick_control &= ~TSC_EVERYPPS;
+    timesync_regs->tick_control &= ~TSC_TRIGGER_EVERYPPS;
 
   return true;
 }
index f3901978e58599346340ed4409b054649dd14b38..fb6fc45d7f7f463fa85ddc8837498288d5a905c3 100644 (file)
@@ -655,11 +655,14 @@ typedef struct {
 
 #define timesync_regs ((timesync_regs_t *) TIMESYNC_BASE)
 
-#define TSC_SOURCE      (1 << 0)
-#define TSC_IENABLE     (1 << 1)
-#define TSC_EXTSYNC     (1 << 2)
-#define TSC_PPSEDGE     (1 << 3)
-#define TSC_EVERYPPS    (1 << 4)
+#define TSC_SOURCE_PPS        (1 << 0)
+//#define TSC_SOURCE_FREE_RUN (0 << 0)
+#define TSC_IENABLE           (1 << 1)
+#define TSC_EXTSYNC           (1 << 2)
+#define TSC_PPSEDGE_POS       (1 << 3)
+//#define TSC_PPSEDGE_NEG     (0 << 3)
+#define TSC_TRIGGER_EVERYPPS  (1 << 4)
+//#define TSC_TRIGGER_ONCE    (0 << 4)
 
 ///////////////////////////////////////////////////
 // SD Card SPI interface, Slave 13