aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/fx2/b100/usrp_main.c4
-rw-r--r--host/lib/usrp/b100/b100_impl.cpp4
2 files changed, 4 insertions, 4 deletions
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);
}
diff --git a/host/lib/usrp/b100/b100_impl.cpp b/host/lib/usrp/b100/b100_impl.cpp
index 41e451481..991e6efd3 100644
--- a/host/lib/usrp/b100/b100_impl.cpp
+++ b/host/lib/usrp/b100/b100_impl.cpp
@@ -182,12 +182,11 @@ b100_impl::b100_impl(const device_addr_t &device_addr){
//-- setup clock after making fx2 and before loading fpga --//
_clock_ctrl = b100_clock_ctrl::make(_fx2_ctrl, device_addr.cast<double>("master_clock_rate", B100_DEFAULT_TICK_RATE));
- //load FPGA image, gpif is disabled while loading
+ //load FPGA image, slave xfers are disabled while loading
this->enable_gpif(false);
_fx2_ctrl->usrp_load_fpga(b100_fpga_image);
_fx2_ctrl->usrp_fpga_reset(false); //active low reset
_fx2_ctrl->usrp_fpga_reset(true);
- this->enable_gpif(true);
//create the control transport
device_addr_t ctrl_xport_args;
@@ -203,6 +202,7 @@ b100_impl::b100_impl(const device_addr_t &device_addr){
ctrl_xport_args
);
while (_ctrl_transport->get_recv_buff(0.0)){} //flush ctrl xport
+ this->enable_gpif(true);
////////////////////////////////////////////////////////////////////
// Initialize FPGA wishbone communication