Doxygen stuff.
[goodfet] / firmware / apps / monitor / monitor.c
index 78aaa91..8828491 100644 (file)
@@ -1,3 +1,8 @@
+/*! \file monitor.c
+  \author Travis Goodspeed
+  \brief Local debug monitor.
+*/
+
 #include "command.h"
 #include "platform.h"
 #include "monitor.h"
@@ -29,6 +34,18 @@ void monitorhandle(unsigned char app,
     cmddataword[0]=monitor_ram_depth();
     txdata(app,verb,2);
     break;
+  case MONITOR_DIR:
+    P5DIR=cmddata[0];
+    txdata(app,verb,1);
+    break;
+  case MONITOR_IN:
+    cmddata[0]=P5IN;
+    txdata(app,verb,1);
+    break;
+  case MONITOR_OUT:
+    P5OUT=cmddata[0];
+    txdata(app,verb,1);
+    break;
   }
 }