mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-09-01 10:39:51 +02:00
Device:
- suppress prog_mode to the constructor and set mode to NONE_MODE - parse file extension - program, idCode and reset are now virtual
This commit is contained in:
+6
-10
@@ -5,21 +5,17 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
Device::Device(FtdiJtag *jtag, enum prog_mode mode, string filename):
|
||||
_filename(filename), _mode(mode)
|
||||
Device::Device(FtdiJtag *jtag, string filename):
|
||||
_filename(filename),
|
||||
_file_extension(filename.substr(filename.find_last_of(".") +1)),
|
||||
_mode(NONE_MODE)
|
||||
{
|
||||
_jtag = jtag;
|
||||
cout << _file_extension << endl;
|
||||
}
|
||||
|
||||
int Device::idCode()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Device::~Device() {}
|
||||
|
||||
void Device::program()
|
||||
{
|
||||
throw std::runtime_error("Not implemented");
|
||||
}
|
||||
void Device::reset()
|
||||
{
|
||||
throw std::runtime_error("Not implemented");
|
||||
|
||||
Reference in New Issue
Block a user