aboutsummaryrefslogtreecommitdiff
path: root/projects/board-test
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2018-05-27 16:54:00 -0400
committerRob Austein <sra@hactrn.net>2018-05-27 16:54:13 -0400
commit0aef9c398815a63e7a7cc0a6ffd42aa440c8a48b (patch)
tree29a9615faea2e8b8360668307a6844ac8eeb5356 /projects/board-test
parent64126d628fe4b6e49bcd143f199710c40115817a (diff)
FMC cleanup: constification, gratuitous pointer.
Diffstat (limited to 'projects/board-test')
-rw-r--r--projects/board-test/fmc-perf.c4
-rw-r--r--projects/board-test/fmc-test.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/projects/board-test/fmc-perf.c b/projects/board-test/fmc-perf.c
index e87f282..71d0149 100644
--- a/projects/board-test/fmc-perf.c
+++ b/projects/board-test/fmc-perf.c
@@ -31,7 +31,7 @@ static void sanity(void)
uint32_t rnd, data;
rnd = random();
- if (fmc_write_32(0, &rnd) != 0) {
+ if (fmc_write_32(0, rnd) != 0) {
uart_send_string("fmc_write_32 failed\r\n");
Error_Handler();
}
@@ -88,7 +88,7 @@ static void test_write(void)
uint32_t i;
for (i = 0; i < TEST_NUM_ROUNDS; ++i) {
- if (fmc_write_32(0, &i) != 0) {
+ if (fmc_write_32(0, i) != 0) {
uart_send_string("fmc_write_32 failed\r\n");
Error_Handler();
}
diff --git a/projects/board-test/fmc-test.c b/projects/board-test/fmc-test.c
index 2002f57..1421db0 100644
--- a/projects/board-test/fmc-test.c
+++ b/projects/board-test/fmc-test.c
@@ -171,7 +171,7 @@ int test_fpga_data_bus(void)
if (hal_result != HAL_OK) break;
// write value to fpga at address 0
- ok = fmc_write_32(0, &rnd);
+ ok = fmc_write_32(0, rnd);
if (ok != 0) break;
// read value from fpga
@@ -239,7 +239,7 @@ int test_fpga_address_bus(void)
if (rnd == 0) continue;
// write dummy value to fpga at some non-zero address
- ok = fmc_write_32(rnd, &buf);
+ ok = fmc_write_32(rnd, buf);
if (ok != 0) break;
// read value from fpga