From 63991f7922a4e20888f001b802a8d8c88a8a16ee Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Fri, 16 Mar 2012 11:26:34 -0700 Subject: B100: enable_gpif(0) disables FIFO output clock on FX2. this prevents the "stuffing zeroes" problem and improves transport reliability. --- firmware/fx2/b100/usrp_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/fx2/b100') diff --git a/firmware/fx2/b100/usrp_main.c b/firmware/fx2/b100/usrp_main.c index 7c4dd479d..74427b7d2 100644 --- a/firmware/fx2/b100/usrp_main.c +++ b/firmware/fx2/b100/usrp_main.c @@ -87,9 +87,9 @@ static void clear_fifo(int ep) { void enable_xfers(int enable) { if(enable) { - IFCONFIG |= bmIFSLAVE; + IFCONFIG = bmIFCLKSRC | bm3048MHZ | bmIFCLKOE | bmIFSLAVE; } else { - IFCONFIG &= ~bmIFSLAVE; + IFCONFIG = bmIFCLKSRC | bm3048MHZ | bmIFSLAVE; } set_led_0(enable); } -- cgit v1.2.3