From: Dan White Date: Thu, 9 May 2013 20:34:35 +0000 (-0500) Subject: Show how to add a word to execute at bootup. X-Git-Tag: cheetah~100 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=6f3f5f0940066b23ce25611a3d01a5f44d84cb76;p=430.git Show how to add a word to execute at bootup. --- diff --git a/msp4th/main.c b/msp4th/main.c index 5860892..afea074 100644 --- a/msp4th/main.c +++ b/msp4th/main.c @@ -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;