aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2018-07-16 15:00:16 -0400
committerPaul Selkirk <paul@psgd.org>2018-12-12 10:40:54 -0500
commite79ecc525cf92134e6d67600a41a302e88ae89e3 (patch)
treec30f5c2415929120bb5f7ad3ecbb81cac2d015e7 /projects/cli-test
parent7d78334b762315de69fc0c380f3bb7315b0e2a10 (diff)
Whack various bits of sw/stm32 test code to compile on fmc_clk branch.
Diffstat (limited to 'projects/cli-test')
-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;
}