X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=firmware%2Finclude%2Fmonitor.h;h=a4a3156bd4a17248c673ca712726f57f381ff2a0;hb=757884d51cc6b119a3b1773873c446926b26011d;hp=3a89422d478a82facb19c90f9cbdee43c28b26c4;hpb=44b997db2bb80402447522d8de2e07d5122f915c;p=goodfet diff --git a/firmware/include/monitor.h b/firmware/include/monitor.h index 3a89422..a4a3156 100644 --- a/firmware/include/monitor.h +++ b/firmware/include/monitor.h @@ -1,9 +1,13 @@ +/*! \file monitor.h + \author Travis Goodspeed + \brief Debug monitor commands. +*/ - +#ifdef MSP430 #include #include #include - +#endif // Generic Commands @@ -12,3 +16,21 @@ void monitor_ram_pattern(); //! Return the number of contiguous bytes 0xBEEF, to measure RAM usage. unsigned int monitor_ram_depth(); +// Monitor Commands +#define MONITOR_CHANGE_BAUD 0x80 +#define MONITOR_ECHO 0x81 +#define MONITOR_RAM_PATTERN 0x90 +#define MONITOR_RAM_DEPTH 0x91 + +#define MONITOR_DIR 0xA0 +#define MONITOR_OUT 0xA1 +#define MONITOR_IN 0xA2 + +#define MONITOR_SILENT 0xB0 +#define MONITOR_CONNECTED 0xB1 + +#define MONITOR_READBUF 0xC0 +#define MONITOR_WRITEBUF 0xC1 +#define MONITOR_SIZEBUF 0xC2 + +