mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2025-02-28 04:29:19 +00:00
Firmware: use PROGMEM for mode strings
Change-Id: Ic657c063ee49844c5fdaaa2391d387242b9e7ae0
This commit is contained in:
parent
9711bf3a7c
commit
a1990490dc
@ -325,19 +325,32 @@ modes_t modes[MAXBKPTS];
|
|||||||
#define WATCH_EXEC 9
|
#define WATCH_EXEC 9
|
||||||
#define TRANSIENT 10
|
#define TRANSIENT 10
|
||||||
|
|
||||||
|
|
||||||
|
static const char MODE0[] PROGMEM = "Mem Rd Brkpt";
|
||||||
|
static const char MODE1[] PROGMEM = "Mem Rd Watch";
|
||||||
|
static const char MODE2[] PROGMEM = "Mem Wr Brkpt";
|
||||||
|
static const char MODE3[] PROGMEM = "Mem Wr Watch";
|
||||||
|
static const char MODE4[] PROGMEM = "IO Rd Brkpt";
|
||||||
|
static const char MODE5[] PROGMEM = "IO Rd Watch";
|
||||||
|
static const char MODE6[] PROGMEM = "IO Wr Brkpt";
|
||||||
|
static const char MODE7[] PROGMEM = "IO Wr Watch";
|
||||||
|
static const char MODE8[] PROGMEM = "Ex Brkpt";
|
||||||
|
static const char MODE9[] PROGMEM = "Ex Watch";
|
||||||
|
static const char MODE10[] PROGMEM = "Transient";
|
||||||
|
|
||||||
// Breakpoint Mode Strings, should match the modes above
|
// Breakpoint Mode Strings, should match the modes above
|
||||||
char *modeStrings[NUM_MODES] = {
|
static const char *modeStrings[NUM_MODES] = {
|
||||||
"Mem Rd Brkpt",
|
MODE0,
|
||||||
"Mem Rd Watch",
|
MODE1,
|
||||||
"Mem Wr Brkpt",
|
MODE2,
|
||||||
"Mem Wr Watch",
|
MODE3,
|
||||||
"IO Rd Brkpt",
|
MODE4,
|
||||||
"IO Rd Watch",
|
MODE5,
|
||||||
"IO Wr Brkpt",
|
MODE6,
|
||||||
"IO Wr Watch",
|
MODE7,
|
||||||
"Ex Brkpt",
|
MODE8,
|
||||||
"Ex Watch",
|
MODE9,
|
||||||
"Transient"
|
MODE10
|
||||||
};
|
};
|
||||||
|
|
||||||
// For convenience, several masks are defined that group similar types of breakpoint/watch
|
// For convenience, several masks are defined that group similar types of breakpoint/watch
|
||||||
@ -771,7 +784,7 @@ void logMode(modes_t mode) {
|
|||||||
if (!first) {
|
if (!first) {
|
||||||
logstr(", ");
|
logstr(", ");
|
||||||
}
|
}
|
||||||
logs(modeStrings[i]);
|
logpgmstr(modeStrings[i]);
|
||||||
first = 0;
|
first = 0;
|
||||||
}
|
}
|
||||||
mode >>= 1;
|
mode >>= 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user