Arduino port is working, but only at 9600 baud.
[goodfet] / firmware / apps / monitor / monitor.c
index ab6f8a4..39833d4 100644 (file)
@@ -78,14 +78,22 @@ void monitor_handle_fn(uint8_t const app,
                break;
 
        case PEEK:
+         #ifdef MSP430
                cmddata[0]=memorybyte[cmddataword[0]];
+          #else
+               debugstr("Monitor peeks are unsupported on this platform.");
+         #endif
                txdata(app,verb,1);
                break;
 
        case POKE:
+         #ifdef MSP430
                //Todo, make word or byte.
                memorybyte[cmddataword[0]] = cmddata[2];
                cmddata[0] = memorybyte[cmddataword[0]];
+          #else
+               debugstr("Monitor pokes are unsupported on this platform.");
+         #endif
                txdata(app,verb,1);
                break;
 
@@ -123,19 +131,22 @@ void monitor_handle_fn(uint8_t const app,
                break;
 
        case MONITOR_DIR:
-               P5DIR=cmddata[0];
-               txdata(app,verb,1);
-               break;
+         //P5DIR=cmddata[0];
+         debugstr("Command deprecated.");
+         txdata(app,verb,1);
+         break;
 
        case MONITOR_IN:
-               cmddata[0]=P5IN;
-               txdata(app,verb,1);
-               break;
+         //cmddata[0]=P5IN;
+         debugstr("Command deprecated.");
+         txdata(app,verb,1);
+         break;
 
        case MONITOR_OUT:
-               P5OUT=cmddata[0];
-               txdata(app,verb,1);
-               break;
+         //P5OUT=cmddata[0];
+         debugstr("Command deprecated.");
+         txdata(app,verb,1);
+         break;
                
        case MONITOR_SILENT:
                silent=cmddata[0];
@@ -143,9 +154,11 @@ void monitor_handle_fn(uint8_t const app,
                break;
 
        case MONITOR_CONNECTED:
-               msp430_init_dco_done();
-               txdata(app,verb,0);
-               break;
+         #ifdef MSP430
+         msp430_init_dco_done();
+         #endif
+         txdata(app,verb,0);
+         break;
        }
 }