ember toys not necessary here.
[goodfet] / firmware / include / monitor.h
1 /*! \file monitor.h
2   \author Travis Goodspeed
3   \brief Debug monitor commands.
4 */
5
6 #ifdef MSP430
7 #include <signal.h>
8 #include <io.h>
9 #include <iomacros.h>
10 #endif
11
12 // Generic Commands
13
14 //! Overwrite all of RAM with 0xBEEF, then reboot.
15 void monitor_ram_pattern();
16 //! Return the number of contiguous bytes 0xBEEF, to measure RAM usage.
17 unsigned int monitor_ram_depth();
18
19 // Monitor Commands
20 #define MONITOR_CHANGE_BAUD 0x80
21 #define MONITOR_ECHO 0x81
22 #define MONITOR_RAM_PATTERN 0x90
23 #define MONITOR_RAM_DEPTH 0x91
24
25 #define MONITOR_DIR 0xA0
26 #define MONITOR_OUT 0xA1
27 #define MONITOR_IN  0xA2
28
29 #define MONITOR_SILENT 0xB0
30 #define MONITOR_CONNECTED 0xB1
31
32 #define MONITOR_READBUF 0xC0
33 #define MONITOR_WRITEBUF 0xC1
34 #define MONITOR_SIZEBUF 0xC2
35
36