rename ftdijtag to jtag

- drop everything about ftdi
- use jtagInterface to communicate with hardware
- for all class using jtag: rename FtdiJtag -> Jtag
This commit is contained in:
Gwenhael Goavec-Merou
2020-03-06 09:05:57 +01:00
parent 890fc3c767
commit 9c9348f7d0
18 changed files with 284 additions and 293 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
#include <iostream>
#include "ftdijtag.hpp"
#include "jtag.hpp"
/* GGM: TODO: program must have an optional
* offset
@@ -18,13 +18,13 @@ class Device {
FLASH_MODE = 1,
MEM_MODE = 2
};
Device(FtdiJtag *jtag, std::string filename, bool verbose = false);
Device(Jtag *jtag, std::string filename, bool verbose = false);
virtual ~Device();
virtual void program(unsigned int offset = 0) = 0;
virtual int idCode() = 0;
virtual void reset();
protected:
FtdiJtag *_jtag;
Jtag *_jtag;
std::string _filename;
std::string _file_extension;
enum prog_mode _mode;