aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test/test-fmc.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2019-01-12 18:20:10 -0500
committerPaul Selkirk <paul@psgd.org>2019-01-12 18:20:10 -0500
commit44dc84d3696795fbe0b6f1786cabaa08fd88ade6 (patch)
tree34f3fa7cc69b5f89c4c6cc90d6015b24fe9eba53 /projects/cli-test/test-fmc.c
parent07af68c08baefbced001a0081256cb1fff8ed491 (diff)
Timing tests for RSA signing and sub-components thereof.
This is not the sort of thing that should go anywhere near production code, so it's on a dangling branch. I may rebase it from time to time.
Diffstat (limited to 'projects/cli-test/test-fmc.c')
-rw-r--r--projects/cli-test/test-fmc.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/projects/cli-test/test-fmc.c b/projects/cli-test/test-fmc.c
index 6773cfc..d9b0c9b 100644
--- a/projects/cli-test/test-fmc.c
+++ b/projects/cli-test/test-fmc.c
@@ -80,16 +80,8 @@ static int _write_then_read(struct cli_def *cli, uint32_t addr, uint32_t write_b
{
int ok;
- ok = fmc_write_32(addr, write_buf);
- if (ok != 0) {
- cli_print(cli, "FMC write failed: 0x%x", ok);
- return 0;
- }
- ok = fmc_read_32(0, read_buf);
- if (ok != 0) {
- cli_print(cli, "FMC read failed: 0x%x", ok);
- return 0;
- }
+ fmc_write_32(addr, write_buf);
+ fmc_read_32(0, read_buf);
return 1;
}