test code for our MBED board

Dependencies:   mbed lwip

Committer:
lolpcc
Date:
Wed May 04 08:30:52 2011 +0000
Revision:
1:6877bb99aa17

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lolpcc 1:6877bb99aa17 1 #define HELP_STRING \
lolpcc 1:6877bb99aa17 2 "Commands for the Diags are\n" \
lolpcc 1:6877bb99aa17 3 "help - This text\n" \
lolpcc 1:6877bb99aa17 4 "exec <file> - Exec a command file from the local file system\n" \
lolpcc 1:6877bb99aa17 5 "cat <file> - Display a file on the current output device \n" \
lolpcc 1:6877bb99aa17 6 "dir - show files on the local file system\n" \
lolpcc 1:6877bb99aa17 7 "wait <1/10 sec> - Wait for X tenths of a second\n" \
lolpcc 1:6877bb99aa17 8 "baud <speed> - Set the serial lines baud rate to X\n"
lolpcc 1:6877bb99aa17 9
lolpcc 1:6877bb99aa17 10 #define HELP_STRING2 \
lolpcc 1:6877bb99aa17 11 "print <string> - Print a string to the console\n\n" \
lolpcc 1:6877bb99aa17 12 "list - Scan down the I2C bus for devices\n" \
lolpcc 1:6877bb99aa17 13 "i2cw <add> <dat> - Write a value to the I2C bus\n" \
lolpcc 1:6877bb99aa17 14 "i2cr <add> - Read a value from the I2C bus\n" \
lolpcc 1:6877bb99aa17 15 "led <loop> - Test the MBED leds, cyle fron X times\n" \
lolpcc 1:6877bb99aa17 16 "sseg <loop> - Test the Seven Segment display X times\n" \
lolpcc 1:6877bb99aa17 17 "digital <loop> - Test the digital I/O lines as outputs X times\n" \
lolpcc 1:6877bb99aa17 18 "rs232 <string> - Send a string out to the serial line\n"
lolpcc 1:6877bb99aa17 19
lolpcc 1:6877bb99aa17 20 #define HELP_STRING3 \
lolpcc 1:6877bb99aa17 21 "kbd <type> - Keypad data entery test, type is either 3 or 4 (3*4) or (4*4)\n" \
lolpcc 1:6877bb99aa17 22 "lcd <type> - LCD test type is 1 or 2, 1 for Robot electronics, 2 for Batron\n" \
lolpcc 1:6877bb99aa17 23 "canrx - Listen to the can bus only, display received messages\n" \
lolpcc 1:6877bb99aa17 24 "cantx <message> - Send a message down the can bus to the receiving station\n" \
lolpcc 1:6877bb99aa17 25 "netinit - Start the tcp/ip network, by DHCP\n" \
lolpcc 1:6877bb99aa17 26 "ticker - Start the ticker test on LED 4\n" \
lolpcc 1:6877bb99aa17 27 "station <char> - Station ID for each station\n" \
lolpcc 1:6877bb99aa17 28 "date - Current RTC date\n" \
lolpcc 1:6877bb99aa17 29 "dateset <secs> - Set the RTC from the command line in seconds \n" \
lolpcc 1:6877bb99aa17 30 " http://www.onlineconversion.com/unix_time.htm\n"
lolpcc 1:6877bb99aa17 31
lolpcc 1:6877bb99aa17 32 #define HELP_SCRIPT1 \
lolpcc 1:6877bb99aa17 33 "MBED scripting basics\n" \
lolpcc 1:6877bb99aa17 34 "Variables are v0 to V9, jump points are J0 to J9\n" \
lolpcc 1:6877bb99aa17 35 "Following are the actions that can be handled by the scripting language\n\n" \
lolpcc 1:6877bb99aa17 36 "set <var> <value> - Set a variable to a value\n" \
lolpcc 1:6877bb99aa17 37 "sum <var> <action> <var *> - sum tow variables together\n" \
lolpcc 1:6877bb99aa17 38 "tst <var> <test> <var *> <jump> - test a variable to see if it passes the test\n" \
lolpcc 1:6877bb99aa17 39 " Jump to the jump lable if needed\n" \
lolpcc 1:6877bb99aa17 40 "point <jump> - Set a jump point\n" \
lolpcc 1:6877bb99aa17 41 "\n\n" \
lolpcc 1:6877bb99aa17 42 "Maths actions are +, -, /, * with test actions of <, >, !, =\n"