From b63284001ee2ee9cde993a4def2a98d551a0d745 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 16 Jul 2018 15:00:16 -0400 Subject: Whack various bits of sw/stm32 test code to compile on fmc_clk branch. --- projects/cli-test/test-fmc.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'projects/cli-test') 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; } -- cgit v1.2.3