From 63bed1fd547d34f1edf6719987725e0e3495f15c Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Mon, 18 Nov 2019 16:04:29 +0100 Subject: [PATCH] device: add flash mode as alias to SPI mode --- device.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/device.hpp b/device.hpp index bcfce42..e16946c 100644 --- a/device.hpp +++ b/device.hpp @@ -14,8 +14,9 @@ class Device { public: enum prog_mode { NONE_MODE = 0, - SPI_MODE, - MEM_MODE + SPI_MODE = 1, + FLASH_MODE = 1, + MEM_MODE = 2 }; Device(FtdiJtag *jtag, std::string filename); virtual ~Device();