add clean-platform
[mTask.git] / int / nucleo-f767-blinky / src / interpret.c
index 4238f44..bbfa351 100644 (file)
@@ -7,10 +7,11 @@
 #include "task.h"
 #include "sds.h"
 
-#ifdef ARDUINO
+#ifdef STM32F767xx
 #define trace(op, ...) ;
 #else
-#define trace(op, ...) printf("pc: %d, sp: %d, op: " op, pc, sp, ##__VA_ARGS__);
+#define trace(op, ...) ;
+//printf("pc: %d, sp: %d, op: " op, pc, sp, ##__VA_ARGS__);
 #endif
 
 void run_task(struct task *t)
@@ -22,10 +23,10 @@ void run_task(struct task *t)
        char stack[STACKSIZE] = {0};
        printf("Running task with length: %d\n", plen);
        while(pc != plen){
-               printf("program: %d\n", program[pc]);
-               printf("stack: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n",
-                       stack[0], stack[1], stack[2], stack[3], stack[4],
-                       stack[5], stack[6], stack[7], stack[8], stack[9]);
+               //printf("program: %d\n", program[pc]);
+               //printf("stack: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n",
+               //      stack[0], stack[1], stack[2], stack[3], stack[4],
+               //      stack[5], stack[6], stack[7], stack[8], stack[9]);
 
                switch(program[pc++]){
                case BCNOP: trace("nop\n");