diff options
author | Paul Selkirk <paul@psgd.org> | 2016-07-21 16:32:43 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-07-21 16:32:43 -0400 |
commit | e3fe7d89b6094bfef42f42329e15631f684f0748 (patch) | |
tree | dbaca9b4ce50dca6950a658cef99d20d5d7922ae /projects/cli-test/mgmt-test.c | |
parent | 91cc61352451093e26605f4a9bbe83798da02fd0 (diff) |
Use a fresh port of libcli, which retains more of the original API.
Diffstat (limited to 'projects/cli-test/mgmt-test.c')
-rw-r--r-- | projects/cli-test/mgmt-test.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/projects/cli-test/mgmt-test.c b/projects/cli-test/mgmt-test.c index 35c6fb6..138982f 100644 --- a/projects/cli-test/mgmt-test.c +++ b/projects/cli-test/mgmt-test.c @@ -44,8 +44,7 @@ #include <stdlib.h> - -int cmd_test_sdram(struct cli_def *cli, const char *command, char *argv[], int argc) +static int cmd_test_sdram(struct cli_def *cli, const char *command, char *argv[], int argc) { // run external memory initialization sequence HAL_StatusTypeDef status; @@ -110,12 +109,11 @@ int cmd_test_sdram(struct cli_def *cli, const char *command, char *argv[], int a void configure_cli_test(struct cli_def *cli) { - /* test */ - cli_command_root(test); + struct cli_command *c = cli_register_command(cli, NULL, "test", NULL, 0, 0, NULL); /* test sdram */ - cli_command_node(test, sdram, "Run SDRAM tests"); + cli_register_command(cli, c, "sdram", cmd_test_sdram, 0, 0, "Run SDRAM tests"); /* test mkmif */ - cli_command_node(test, mkmif, "Run Master Key Memory Interface tests"); + cli_register_command(cli, c, "mkmif", cmd_test_mkmif, 0, 0, "Run Master Key Memory Interface tests"); } |