1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/periph_flashpage: small cleanup

This commit is contained in:
Alexandre Abadie 2018-03-11 20:35:48 +01:00
parent 66cbc6ad8c
commit 890cec321e
2 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
Expected result
===============
Use the provided shell commands, to read and write pages from/to the MCU's
Use the provided shell commands to read and write pages from/to the MCU's
internal flash memory. For altering the data in a flash page, use a sequence
similar to this:
- read some page from the flash, this will load this page into a local buffer
@ -34,5 +34,5 @@ What else to check:
Background
==========
This test provides you with tools to test implementations of the `flashpage`
peripheral driver interface.
This test application provides shell commands to verify the implementations of
the `flashpage` peripheral driver interface.

View File

@ -173,7 +173,7 @@ static int cmd_write(int argc, char **argv)
return 1;
}
printf("wrote local page to flash page %i at addr %p\n",
printf("wrote local page buffer to flash page %i at addr %p\n",
page, flashpage_addr(page));
return 0;
}
@ -270,11 +270,11 @@ static int cmd_test(int argc, char **argv)
}
if (flashpage_write_and_verify(page, page_mem) != FLASHPAGE_OK) {
printf("error verifying the content of page %i: ", page);
printf("error verifying the content of page %i\n", page);
return 1;
}
printf("wrote local page to flash page %i at addr %p\n",
printf("wrote local page buffer to flash page %i at addr %p\n",
page, flashpage_addr(page));
return 0;
}
@ -283,13 +283,13 @@ static const shell_command_t shell_commands[] = {
{ "info", "Show information about pages", cmd_info },
{ "dump", "Dump the selected page to STDOUT", cmd_dump },
{ "dump_local", "Dump the local page buffer to STDOUT", cmd_dump_local },
{ "read", "Read and output the given page", cmd_read },
{ "write", "Write (ASCII) data to the given page", cmd_write },
{ "read", "Copy the given page to the local page buffer and dump to STDOUT", cmd_read },
{ "write", "Write the local page buffer to the given page", cmd_write },
#ifdef MODULE_PERIPH_FLASHPAGE_RAW
{ "write_raw", "Write (ASCII, max 64B) data to the given address", cmd_write_raw },
#endif
{ "erase", "Erase the given page", cmd_erase },
{ "edit", "Write bytes to the local page", cmd_edit },
{ "erase", "Erase the given page buffer", cmd_erase },
{ "edit", "Write bytes to the local page buffer", cmd_edit },
{ "test", "Write and verify test pattern", cmd_test },
{ NULL, NULL, NULL }
};