recast verbose to int8_t to have more level of verbosity (-1 quiet, 0 normal, 1 verbose), add --quiet option, display progress bar when verbosity level >= 0

This commit is contained in:
Gwenhael Goavec-Merou
2021-01-30 07:57:49 +01:00
parent 1992360667
commit ad21a3bb36
22 changed files with 114 additions and 68 deletions
+2 -1
View File
@@ -18,7 +18,7 @@ class Device {
FLASH_MODE = 1,
MEM_MODE = 2
};
Device(Jtag *jtag, std::string filename, bool verbose = false);
Device(Jtag *jtag, std::string filename, int8_t verbose = false);
virtual ~Device();
virtual void program(unsigned int offset = 0) = 0;
virtual int idCode() = 0;
@@ -29,6 +29,7 @@ class Device {
std::string _file_extension;
enum prog_mode _mode;
bool _verbose;
bool _quiet;
};
#endif