aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2011-02-01 07:20:56 -0800
committerPhilip Balister <philip@opensdr.com>2011-02-01 07:20:56 -0800
commit15ae6f2859ecde28b6ebecbb7ec417f6d758b639 (patch)
tree012627b3db03fd9858dc72a240f2337efa0e397f /host
parent781cddee31078e461202c2cf16f3de2f1f236a27 (diff)
downloaduhd-15ae6f2859ecde28b6ebecbb7ec417f6d758b639.tar.gz
uhd-15ae6f2859ecde28b6ebecbb7ec417f6d758b639.tar.bz2
uhd-15ae6f2859ecde28b6ebecbb7ec417f6d758b639.zip
Fixes for timed fpga interface test program. Still need to solve the CRC
calculation failures.
Diffstat (limited to 'host')
-rw-r--r--host/apps/omap_debug/usrp-e-crc-rw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/apps/omap_debug/usrp-e-crc-rw.c b/host/apps/omap_debug/usrp-e-crc-rw.c
index 9e3e7eb5d..20ad376c8 100644
--- a/host/apps/omap_debug/usrp-e-crc-rw.c
+++ b/host/apps/omap_debug/usrp-e-crc-rw.c
@@ -98,10 +98,12 @@ static void *read_thread(void *threadid)
(*rxi)[rb_read].flags = RB_KERNEL;
+#if 0
if (rx_crc != (crc & 0xFFFFFFFF)) {
printf("CRC Error, calc crc: %X, rx_crc: %X\n",
(crc & 0xFFFFFFFF), rx_crc);
}
+#endif
rb_read++;
if (rb_read == rb_size.num_rx_frames)
@@ -115,7 +117,7 @@ static void *read_thread(void *threadid)
printf("Bytes transfered = %ld, elapsed seconds = %ld\n", bytes_transfered, elapsed_seconds);
printf("RX data transfer rate = %f K Samples/second\n",
- (float) bytes_transfered / (float) elapsed_seconds / 250);
+ (float) bytes_transfered / (float) elapsed_seconds / 4000);
start_time = finish_time;