From c5223d192205f729b316197c83fc69eb67b6ee45 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 25 Mar 2013 13:12:55 -0700 Subject: usrp1: fix eeprom write capability through fx2 The vectorized eeprom write was faster but broken, removed overload which falls back to the one byte at a time. --- host/lib/usrp/common/fx2_ctrl.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/host/lib/usrp/common/fx2_ctrl.cpp b/host/lib/usrp/common/fx2_ctrl.cpp index 93303542e..1f9cb84b3 100644 --- a/host/lib/usrp/common/fx2_ctrl.cpp +++ b/host/lib/usrp/common/fx2_ctrl.cpp @@ -410,17 +410,6 @@ public: return usrp_control_write(request, value, index, 0, 0); } - void write_eeprom( - boost::uint8_t addr, - boost::uint8_t offset, - const byte_vector_t &bytes - ){ - byte_vector_t bytes_with_cmd(bytes.size() + 1); - bytes_with_cmd[0] = offset; - std::copy(bytes.begin(), bytes.end(), &bytes_with_cmd[1]); - this->write_i2c(addr, bytes_with_cmd); - } - byte_vector_t read_eeprom( boost::uint8_t addr, boost::uint8_t offset, -- cgit v1.2.3