From: Florent Kermarrec Date: Fri, 29 May 2020 16:51:24 +0000 (+0200) Subject: bios/cmds/cmd_litesdcard: rewrite comments/descriptions. X-Git-Tag: 24jan2021_ls180~259 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55c7461e7b9d44970b1bd0b9939c5cdc39a9bbb2;p=litex.git bios/cmds/cmd_litesdcard: rewrite comments/descriptions. --- diff --git a/litex/soc/software/bios/cmds/cmd_litesdcard.c b/litex/soc/software/bios/cmds/cmd_litesdcard.c index 4cac68f2..b7456871 100644 --- a/litex/soc/software/bios/cmds/cmd_litesdcard.c +++ b/litex/soc/software/bios/cmds/cmd_litesdcard.c @@ -23,13 +23,13 @@ static void sdclk(int nb_params, char **params) char *c; if (nb_params < 1) { - printf("sdclk "); + printf("sdclk "); return; } frequ = strtoul(params[0], &c, 0); if (*c != 0) { - printf("Incorrect frequency"); + printf("Incorrect freq"); return; } @@ -40,10 +40,10 @@ struct command_struct cmd_sdclk = { .func = sdclk, .name = "sdclk", - .help = "SDCard set clk frequency (Mhz)", + .help = "Set SDCard clk freq (Mhz)", }; -define_command(sdclk, sdclk, "SDCard set clk frequency (Mhz)", LITESDCARD_CMDS); +define_command(sdclk, sdclk, "Set SDCard clk freq (Mhz)", LITESDCARD_CMDS); #endif /** @@ -53,7 +53,7 @@ define_command(sdclk, sdclk, "SDCard set clk frequency (Mhz)", LITESDCARD_CMDS); * */ #ifdef CSR_SDCORE_BASE -define_command(sdinit, sdcard_init, "SDCard initialization", LITESDCARD_CMDS); +define_command(sdinit, sdcard_init, "Initialize SDCard", LITESDCARD_CMDS); #endif /** @@ -69,20 +69,20 @@ static void sdtest(int nb_params, char **params) char *c; if (nb_params < 1) { - printf("sdtest "); + printf("sdtest "); return; } blocks = strtoul(params[0], &c, 0); if (*c != 0) { - printf("Incorrect number of blocks to write"); + printf("Incorrect number of blocks"); return; } sdcard_test(blocks); } -define_command(sdtest, sdtest, "SDCard test", LITESDCARD_CMDS); +define_command(sdtest, sdtest, "Test SDCard Write & Read on N blocks", LITESDCARD_CMDS); #endif /** @@ -98,20 +98,20 @@ static void sdtestread(int nb_params, char **params) char *c; if (nb_params < 1) { - printf("sdtestread "); + printf("sdread "); return; } block = strtoul(params[0], &c, 0); if (*c != 0) { - printf("Incorrect number of block to read"); + printf("Incorrect block number"); return; } sdcard_test_read(block); } -define_command(sdtestread, sdtestread, "SDCard test read", LITESDCARD_CMDS); +define_command(sdtestread, sdtestread, "Test SDCard Read on block N", LITESDCARD_CMDS); #endif /** @@ -127,18 +127,18 @@ static void sdtestwrite(int nb_params, char **params) char *c; if (nb_params < 2) { - printf("sdtestread "); + printf("sdtestwrite "); return; } block = strtoul(params[0], &c, 0); if (*c != 0) { - printf("Incorrect number of block to write"); + printf("Incorrect block number"); return; } sdcard_test_write(block, params[1]); } -define_command(sdtestwrite, sdtestwrite, "SDCard test write", LITESDCARD_CMDS); +define_command(sdtestwrite, sdtestwrite, "Test SDCard Write on block N", LITESDCARD_CMDS); #endif