X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fmonitor.h;h=d38dae9d71ffb4067685b1954b82aee0840700bc;hp=a4a3156bd4a17248c673ca712726f57f381ff2a0;hb=a031b4a563978102c664466d1e91a9c3ab0553dd;hpb=12bb2a05d2b9a940f4bcdd7478d3c9d45cc8f50a diff --git a/firmware/include/monitor.h b/firmware/include/monitor.h index a4a3156..d38dae9 100644 --- a/firmware/include/monitor.h +++ b/firmware/include/monitor.h @@ -3,22 +3,18 @@ \brief Debug monitor commands. */ -#ifdef MSP430 -#include -#include -#include -#endif +#ifndef MONITOR_H +#define MONITOR_H -// Generic Commands +#include "app.h" -//! 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(); +// 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 @@ -33,4 +29,7 @@ unsigned int monitor_ram_depth(); #define MONITOR_WRITEBUF 0xC1 #define MONITOR_SIZEBUF 0xC2 +extern app_t const monitor_app; + +#endif // MONITOR_H