aboutsummaryrefslogtreecommitdiff
path: root/hal_io_fmc.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2018-05-27 16:54:26 -0400
committerRob Austein <sra@hactrn.net>2018-05-27 16:54:26 -0400
commit78992f6aec779a1dc56429c60bfea276405d7a8c (patch)
treec5e18150241b34946f555c31bed829fd7a4adc20 /hal_io_fmc.c
parent99f01e9d1fb57affed5ab7bad3be6bd6548e0ec4 (diff)
FMC cleanup: constification, gratuitous pointer.
Diffstat (limited to 'hal_io_fmc.c')
-rw-r--r--hal_io_fmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hal_io_fmc.c b/hal_io_fmc.c
index 25ed8f3..8a32921 100644
--- a/hal_io_fmc.c
+++ b/hal_io_fmc.c
@@ -114,7 +114,7 @@ hal_error_t hal_io_write(const hal_core_t *core, hal_addr_t offset, const uint8_
for (; len > 0; offset += 4, buf += 4, len -= 4) {
uint32_t val;
val = htonl(*(uint32_t *)buf);
- fmc_write_32(offset, &val);
+ fmc_write_32(offset, val);
}
return HAL_OK;