From 64126d628fe4b6e49bcd143f199710c40115817a Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 27 May 2018 02:28:32 -0400 Subject: Convert FMC I/O functions to static inline. fmc_read_32() and fmc_write_32() get called often enough that it's worth eliminating unnecessary function call overhead. --- stm-fmc.c | 57 --------------------------------------------------------- stm-fmc.h | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 56 insertions(+), 59 deletions(-) diff --git a/stm-fmc.c b/stm-fmc.c index 1987ebe..c5086b4 100644 --- a/stm-fmc.c +++ b/stm-fmc.c @@ -164,60 +164,3 @@ void fmc_init(void) // initialize fmc HAL_SRAM_Init(&_fmc_fpga_inst, &fmc_timing, NULL); } - - -static HAL_StatusTypeDef _fmc_nwait_idle(void) -{ - int cnt; - - // poll NWAIT (number of iterations is limited) - for (cnt=0; cnt