forked from sysprogs/msp430-gdbproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
66 lines (61 loc) · 1.24 KB
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#pragma once
namespace MSP430Proxy
{
enum BreakpointPolicy
{
HardwareOnly,
HardwareThenSoftware,
SoftwareOnly,
};
enum HardwareInterface
{
UnspecifiedInterface,
Jtag,
SpyBiWare,
JtagOverSpyBiWare,
AutomaticInterface,
};
enum HardwareInterfaceSpeed
{
UnspecifiedSpeed,
Fast,
Medium,
Slow
};
struct GlobalSettings
{
bool EnableEEMMode;
bool InstantBreakpointCleanup;
unsigned short BreakpointInstruction;
BreakpointPolicy SoftBreakPolicy;
const char *PortName;
unsigned Voltage;
int ListenPort;
bool SingleSessionOnly;
bool AutoErase;
bool NoHint;
bool Verbose;
HardwareInterface Interface;
HardwareInterfaceSpeed InterfaceSpeed;
bool Emulate32BitRegisters;
bool EraseInfoMem;
GlobalSettings()
{
EnableEEMMode = true;
InstantBreakpointCleanup = true;
BreakpointInstruction = 0x4343;
SoftBreakPolicy = HardwareThenSoftware;
PortName = "USB";
Voltage = 3333;
ListenPort = 2000;
SingleSessionOnly = true;
AutoErase = false;
NoHint = false;
Verbose = false;
Interface = UnspecifiedInterface;
InterfaceSpeed = UnspecifiedSpeed;
Emulate32BitRegisters = false;
EraseInfoMem = false;
}
};
}