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::AnlogicCable(uint32_t clkHZ, uint8_t verbose):
_verbose(verbose),
dev_handle(NULL), usb_ctx(NULL), _tdi(0), _tms(0)
AnlogicCable::AnlogicCable(uint32_t clkHZ):
dev_handle(NULL), usb_ctx(NULL)
{
int ret;

View File

@ -19,7 +19,7 @@
class AnlogicCable : public JtagInterface {
public:
AnlogicCable(uint32_t clkHZ, uint8_t verbose);
AnlogicCable(uint32_t clkHZ);
virtual ~AnlogicCable();
int setClkFreq(uint32_t clkHZ) override;
@ -43,13 +43,9 @@ class AnlogicCable : public JtagInterface {
int flush() override;
private:
uint8_t _verbose;
int write(uint8_t *in_buf, uint8_t *out_buf, int len, int rd_len);
libusb_device_handle *dev_handle;
libusb_context *usb_ctx;
uint8_t _tdi;
uint8_t _tms;
};
#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) {
case MODE_ANLOGICCABLE:
_jtag = new AnlogicCable(clkHZ, _verbose);
_jtag = new AnlogicCable(clkHZ);
break;
case MODE_FTDI_BITBANG:
if (pin_conf == NULL)