X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fmonitor.h;h=019ae593ebb33aa757f10820b809e224f1a49ee1;hp=b36ceab3dd2113d4a36eb64805a7db4a31fb9a94;hb=dd49731422f391ad8cfbc1910b9b5285f36f43bc;hpb=f5edcbfc46dfafc434774a3e2849582be7cc6348 diff --git a/firmware/include/monitor.h b/firmware/include/monitor.h index b36ceab..019ae59 100644 --- a/firmware/include/monitor.h +++ b/firmware/include/monitor.h @@ -3,16 +3,35 @@ \brief Debug monitor commands. */ -#ifdef MSP430 -#include -#include -#include -#endif - -// Generic Commands - -//! Overwrite all of RAM with 0xBEEF, then reboot. -void monitor_ram_pattern(); -//! Return the number of contiguous bytes 0xBEEF, to measure RAM usage. -unsigned int monitor_ram_depth(); +#ifndef MONITOR_H +#define MONITOR_H + +#include "app.h" + +// Montir app number +#define MONITOR 0x00 + +// Monitor Commands +#define MONITOR_CHANGE_BAUD 0x80 +#define MONITOR_ECHO 0x81 +#define MONITOR_LIST_APPS 0x82 +#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 + +#define MONITOR_LEDTEST 0xD0 + +extern app_t const monitor_app; + +#endif // MONITOR_H