summaryrefslogtreecommitdiff
path: root/src/flash/nand/at91sam9.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2010-01-08 23:18:46 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-01-08 23:18:46 -0800
commit2a76c1bcf94f8ed00c9e744a5405d0ac07cdc85a (patch)
tree865faa2cbc65a6fffa97668d8d214ae3b02d5901 /src/flash/nand/at91sam9.c
parentae710059291ba9830a9b20d899bdef6a5122dd73 (diff)
downloadopenocd_libswd-2a76c1bcf94f8ed00c9e744a5405d0ac07cdc85a.tar.gz
openocd_libswd-2a76c1bcf94f8ed00c9e744a5405d0ac07cdc85a.tar.bz2
openocd_libswd-2a76c1bcf94f8ed00c9e744a5405d0ac07cdc85a.tar.xz
openocd_libswd-2a76c1bcf94f8ed00c9e744a5405d0ac07cdc85a.zip
NAND: help/usage/doc updates
Usage messages should use the same EBNF as the User's Guide; no angle brackets. Be more complete too ... some params were missing. Improve and correct various helptexts. Make user's guide refer to the NAND "driver" name, not the controller name; that's a bit more precise. Don't use "&function"; its name is its address. Line up struct initializers properly. Remove some blank lines. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/flash/nand/at91sam9.c')
-rw-r--r--src/flash/nand/at91sam9.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/flash/nand/at91sam9.c b/src/flash/nand/at91sam9.c
index 5cfbb0a3..92ab047f 100644
--- a/src/flash/nand/at91sam9.c
+++ b/src/flash/nand/at91sam9.c
@@ -697,28 +697,30 @@ static const struct command_registration at91sam9_sub_command_handlers[] = {
.handler = handle_at91sam9_cle_command,
.mode = COMMAND_CONFIG,
.help = "set command latch enable address line (default is 22)",
- .usage = "<device_id> <address_line>",
+ .usage = "bank_id address_line",
},
{
.name = "ale",
.handler = handle_at91sam9_ale_command,
.mode = COMMAND_CONFIG,
.help = "set address latch enable address line (default is 21)",
- .usage = "<device_id> <address_line>",
+ .usage = "bank_id address_line",
},
{
.name = "rdy_busy",
.handler = handle_at91sam9_rdy_busy_command,
.mode = COMMAND_CONFIG,
- .help = "set the input pin connected to RDY/~BUSY signal (no default)",
- .usage = "<device_id> <base_pioc> <pin_num>",
+ .help = "set the GPIO input pin connected to "
+ "the RDY/~BUSY signal (no default)",
+ .usage = "bank_id pio_base_addr pin_num",
},
{
.name = "ce",
.handler = handle_at91sam9_ce_command,
.mode = COMMAND_CONFIG,
- .help = "set the output pin connected to chip enable signal (no default)",
- .usage = "<device_id> <base_pioc> <pin_num>",
+ .help = "set the GPIO output pin connected to "
+ "the chip enable signal (no default)",
+ .usage = "bank_id pio_base_addr pin_num",
},
COMMAND_REGISTRATION_DONE
};