summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreb2009-02-17 19:52:12 +0000
committereb2009-02-17 19:52:12 +0000
commiteb2648dc72e7edb0adb0d810fc4166633c26aea0 (patch)
tree035ce64d35c9ec4c613638d958691c2a94cf249c
parent68495fa71f0845671ecd34b9fe69e9573c42456c (diff)
downloadgnuradio-eb2648dc72e7edb0adb0d810fc4166633c26aea0.tar.gz
gnuradio-eb2648dc72e7edb0adb0d810fc4166633c26aea0.tar.bz2
gnuradio-eb2648dc72e7edb0adb0d810fc4166633c26aea0.zip
minor renaming
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10456 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r--usrp2/firmware/apps/app_common_v2.c4
-rw-r--r--usrp2/firmware/lib/memory_map.h13
2 files changed, 10 insertions, 7 deletions
diff --git a/usrp2/firmware/apps/app_common_v2.c b/usrp2/firmware/apps/app_common_v2.c
index 62e54f9a0..60fa63ee3 100644
--- a/usrp2/firmware/apps/app_common_v2.c
+++ b/usrp2/firmware/apps/app_common_v2.c
@@ -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;
}
diff --git a/usrp2/firmware/lib/memory_map.h b/usrp2/firmware/lib/memory_map.h
index f3901978e..fb6fc45d7 100644
--- a/usrp2/firmware/lib/memory_map.h
+++ b/usrp2/firmware/lib/memory_map.h
@@ -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