device: add flash mode as alias to SPI mode

This commit is contained in:
Gwenhael Goavec-Merou 2019-11-18 16:04:29 +01:00
parent 6d7db76a43
commit 63bed1fd54
1 changed files with 3 additions and 2 deletions

View File

@ -14,8 +14,9 @@ class Device {
public: public:
enum prog_mode { enum prog_mode {
NONE_MODE = 0, NONE_MODE = 0,
SPI_MODE, SPI_MODE = 1,
MEM_MODE FLASH_MODE = 1,
MEM_MODE = 2
}; };
Device(FtdiJtag *jtag, std::string filename); Device(FtdiJtag *jtag, std::string filename);
virtual ~Device(); virtual ~Device();