From eb2648dc72e7edb0adb0d810fc4166633c26aea0 Mon Sep 17 00:00:00 2001 From: eb Date: Tue, 17 Feb 2009 19:52:12 +0000 Subject: [PATCH] minor renaming git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10456 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/firmware/apps/app_common_v2.c | 4 ++-- usrp2/firmware/lib/memory_map.h | 13 ++++++++----- 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 62e54f9a..60fa63ee 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 f3901978..fb6fc45d 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 -- 2.30.2