CVS: libraries/include commandline.h,1.4,1.5
Chris Liechti <[email protected]> Mon, 24 Mar 2008 09:04:35 -0700
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/libraries/include In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2440/include Modified Files: commandline.h Log Message: - provinde and alternate way to find event bits - commandline lib fix Index: commandline.h =================================================================== RCS file: /cvsroot/mspgcc/libraries/include/commandline.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -d -r1.4 -r1.5 --- commandline.h 11 Oct 2006 18:47:28 -0000 1.4 +++ commandline.h 24 Mar 2008 16:04:32 -0000 1.5 @@ -138,26 +138,40 @@ * and has to be a global variable. */ int command_help(int argc, char *argv[]); +#define HELP_help \ +"print information about commands\n\n" \ +"USAGE: help [commnad]\n\n" \ +"Prints a list of commands or the full help of a single command." /** * Memory write command. Supports writes to flash. There is no memory * protection implemented, any address can be written. This means that * the program itself can be destroyed, peripherals reprogrammed etc. + * * This function is not suitable for end user usage! * * Parameters: address, new memory contents */ int command_write(int argc, char *argv[]); +#define HELP_write \ +"write memory\n\n" \ +"USAGE: write address hexencodeddata\n\n" \ +"Write peripherals, RAM or flash memory." /** * Erase a single flash segment. There is no memory protection implemented, * any address can be written. This means that the program itself can be * destroyed, peripherals reprogrammed etc. + * * This function is not suitable for end user usage! * * Parameters: address */ int command_erase(int argc, char *argv[]); +#define HELP_erase \ +"erase flash segment\n\n" \ +"USAGE: erase address\n\n" \ +"Erases single flash segemnts." /** * Dump a memory range. There is no memory protection implemented, @@ -171,6 +185,10 @@ * Parameters: address size(optional) */ int command_hexdump(int argc, char *argv[]); +#define HELP_hexdump \ +"print s hexdump of memory\n\n" \ +"USAGE: hexdump address[size]\n\n" \ +"Show memory contents." /** * Reset the target. @@ -178,6 +196,10 @@ * control register (WDTCTL) which causes a POR. */ int command_reset(int argc, char *argv[]); +#define HELP_reset \ +"reset device\n\n" \ +"USAGE: reset\n\n" \ +"Performs a device reset through a watchdog access." /** * Calculate an XOR checksum over the given memory. @@ -185,6 +207,10 @@ * Parameters: address size(optional) */ int command_checksum(int argc, char *argv[]); +#define HELP_checksum \ +"calculate checksum over a memory area\n\n" \ +"USAGE: checksum address [size]\n\n" \ +"A simple 16 bit XOR checksum us used." /** * Simple Tab completion. This function can be called when a command should be ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/