Show how to add a word to execute at bootup.
authorDan White <dan@whiteaudio.com>
Thu, 9 May 2013 20:34:35 +0000 (15:34 -0500)
committerDan White <dan@whiteaudio.com>
Thu, 9 May 2013 20:35:08 +0000 (15:35 -0500)
msp4th/main.c

index 5860892a35b36a45c1ecd5734bd20a1877f98c44..afea0740609fad505d3f940ae25399c1a8b57dac 100644 (file)
@@ -145,6 +145,14 @@ static __inline__ void config_default_msp4th(void)
         addrStackArray[i] = 0;
     }
 
+    /* example initial line to execute
+    uint8_t *str = (uint8_t *)"1 2 3 4 5 s.\r";
+    for (i=0; i < 14; i++) {
+        lineBufferArray[i] = str[i];
+        lineBufferArray[i+1] = 0;
+    }
+    */
+
     lineBufferArray[0] = 0;
     wordBufferArray[0] = 0;