From 6f3f5f0940066b23ce25611a3d01a5f44d84cb76 Mon Sep 17 00:00:00 2001 From: Dan White Date: Thu, 9 May 2013 15:34:35 -0500 Subject: [PATCH] Show how to add a word to execute at bootup. --- msp4th/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.25.1