[Cryptech-Commits] [sw/stm32] 02/02: Remove fmc_[read|write]_32, since we now memcpy in hal_io_[read|write].
git at cryptech.is
git at cryptech.is
Sun Apr 7 16:59:51 UTC 2019
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository sw/stm32.
commit e203f797dddfcd03419e7ac336a86a6186fce0c1
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Sat Apr 6 17:54:06 2019 -0400
Remove fmc_[read|write]_32, since we now memcpy in hal_io_[read|write].
---
stm-fmc.h | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/stm-fmc.h b/stm-fmc.h
index 92b261b..c01d4ff 100644
--- a/stm-fmc.h
+++ b/stm-fmc.h
@@ -52,22 +52,9 @@
extern void fmc_init(void);
-static inline void fmc_write_32(const uint32_t addr, const uint32_t data)
+static inline void *fmc_fpga_addr(off_t addr)
{
- // calculate target fpga address
- uint32_t *ptr = (uint32_t *) (FMC_FPGA_BASE_ADDR + (addr & FMC_FPGA_ADDR_MASK));
-
- // write data to fpga
- *ptr = data;
-}
-
-static inline void fmc_read_32(const uint32_t addr, uint32_t * const data)
-{
- // calculate target fpga address
- uint32_t *ptr = (uint32_t *) (FMC_FPGA_BASE_ADDR + (addr & FMC_FPGA_ADDR_MASK));
-
- // read data from fpga
- *data = *ptr;
+ return (void *)(FMC_FPGA_BASE_ADDR + (addr & FMC_FPGA_ADDR_MASK));
}
#endif /* __STM_FMC_H */
More information about the Commits
mailing list