anlogicCable: remove unused _verbose, _tdi, _tms

This commit is contained in:
Gwenhael Goavec-Merou 2022-03-20 10:10:30 +01:00
parent cdc68b5dfc
commit 7ed9c201ce
3 changed files with 4 additions and 9 deletions

View File

@ -44,9 +44,8 @@ enum analogicCableFreq {
ANLOGICCABLE_FREQ_90K = 0xff ANLOGICCABLE_FREQ_90K = 0xff
}; };
AnlogicCable::AnlogicCable(uint32_t clkHZ, uint8_t verbose): AnlogicCable::AnlogicCable(uint32_t clkHZ):
_verbose(verbose), dev_handle(NULL), usb_ctx(NULL)
dev_handle(NULL), usb_ctx(NULL), _tdi(0), _tms(0)
{ {
int ret; int ret;

View File

@ -19,7 +19,7 @@
class AnlogicCable : public JtagInterface { class AnlogicCable : public JtagInterface {
public: public:
AnlogicCable(uint32_t clkHZ, uint8_t verbose); AnlogicCable(uint32_t clkHZ);
virtual ~AnlogicCable(); virtual ~AnlogicCable();
int setClkFreq(uint32_t clkHZ) override; int setClkFreq(uint32_t clkHZ) override;
@ -43,13 +43,9 @@ class AnlogicCable : public JtagInterface {
int flush() override; int flush() override;
private: private:
uint8_t _verbose;
int write(uint8_t *in_buf, uint8_t *out_buf, int len, int rd_len); int write(uint8_t *in_buf, uint8_t *out_buf, int len, int rd_len);
libusb_device_handle *dev_handle; libusb_device_handle *dev_handle;
libusb_context *usb_ctx; libusb_context *usb_ctx;
uint8_t _tdi;
uint8_t _tms;
}; };
#endif // SRC_ANLOGICCABLE_HPP_ #endif // SRC_ANLOGICCABLE_HPP_

View File

@ -87,7 +87,7 @@ void Jtag::init_internal(cable_t &cable, const string &dev, const string &serial
{ {
switch (cable.type) { switch (cable.type) {
case MODE_ANLOGICCABLE: case MODE_ANLOGICCABLE:
_jtag = new AnlogicCable(clkHZ, _verbose); _jtag = new AnlogicCable(clkHZ);
break; break;
case MODE_FTDI_BITBANG: case MODE_FTDI_BITBANG:
if (pin_conf == NULL) if (pin_conf == NULL)