[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10422 - in gnuradio/branches/developers/jcorgan/pps/u
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r10422 - in gnuradio/branches/developers/jcorgan/pps/usrp2/firmware: apps include |
Date: |
Tue, 10 Feb 2009 08:52:30 -0700 (MST) |
Author: jcorgan
Date: 2009-02-10 08:52:30 -0700 (Tue, 10 Feb 2009)
New Revision: 10422
Modified:
gnuradio/branches/developers/jcorgan/pps/usrp2/firmware/apps/app_common_v2.c
gnuradio/branches/developers/jcorgan/pps/usrp2/firmware/include/usrp2_eth_packet.h
Log:
Firmware for sync_every_pps
Modified:
gnuradio/branches/developers/jcorgan/pps/usrp2/firmware/apps/app_common_v2.c
===================================================================
---
gnuradio/branches/developers/jcorgan/pps/usrp2/firmware/apps/app_common_v2.c
2009-02-10 15:35:55 UTC (rev 10421)
+++
gnuradio/branches/developers/jcorgan/pps/usrp2/firmware/apps/app_common_v2.c
2009-02-10 15:52:30 UTC (rev 10422)
@@ -55,6 +55,18 @@
}
static bool
+sync_every_pps(const op_generic_t *p)
+{
+ // FIXME use bit fields or defined masks
+ if (p->ok)
+ timesync_regs->tick_control |= 16;
+ else
+ timesync_regs->tick_control &= ~16;
+
+ return true;
+}
+
+static bool
config_mimo_cmd(const op_config_mimo_t *p)
{
clocks_mimo_config(p->flags);
@@ -505,6 +517,11 @@
subpktlen = generic_reply(gp, reply_payload, reply_payload_space, true);
break;
+ case OP_SYNC_EVERY_PPS:
+ subpktlen = generic_reply(gp, reply_payload, reply_payload_space,
+ sync_every_pps((op_generic_t *) payload));
+ break;
+
default:
printf("app_common_v2: unhandled opcode = %d\n", gp->opcode);
break;
Modified:
gnuradio/branches/developers/jcorgan/pps/usrp2/firmware/include/usrp2_eth_packet.h
===================================================================
---
gnuradio/branches/developers/jcorgan/pps/usrp2/firmware/include/usrp2_eth_packet.h
2009-02-10 15:35:55 UTC (rev 10421)
+++
gnuradio/branches/developers/jcorgan/pps/usrp2/firmware/include/usrp2_eth_packet.h
2009-02-10 15:52:30 UTC (rev 10422)
@@ -195,6 +195,8 @@
#define OP_SET_RX_LO_OFFSET_REPLY (OP_SET_RX_LO_OFFSET | OP_REPLY_BIT)
#define OP_RESET_DB 15
#define OP_RESET_DB_REPLY (OP_RESET_DB | OP_REPLY_BIT)
+#define OP_SYNC_EVERY_PPS 16
+#define OP_SYNC_EVERY_PPS_REPLY (OP_SYNC_EVERY_PPS | OP_REPLY_BIT)
/*
* All subpackets are a multiple of 4 bytes long.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10422 - in gnuradio/branches/developers/jcorgan/pps/usrp2/firmware: apps include,
jcorgan <=