aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2020-01-21 11:41:07 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2020-01-21 11:41:07 +0300
commit723766c08127d3f489d90ea94bc090d9481bbebb (patch)
tree01ea4f3243c25291e0049247f68cd1547b33cd58
parentfbce36388c455b9633a25eb4ce872940ae6f72fa (diff)
New FMC settings for STM32.fmc_clk
-rw-r--r--stm-fmc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stm-fmc.c b/stm-fmc.c
index 62b6433..b5e79e8 100644
--- a/stm-fmc.c
+++ b/stm-fmc.c
@@ -149,14 +149,14 @@ void fmc_init(void)
// don't care in sync mode
fmc_timing.DataSetupTime = 255;
- // not needed, since nwait will be polled manually
+ // not needed
fmc_timing.BusTurnAroundDuration = 0;
// use 45 MHz to match what FMC arbiter in the FPGA expects
- fmc_timing.CLKDivision = 4;
+ fmc_timing.CLKDivision = 4; // 180/4
- // use 4 to match what FMC arbiter in the FPGA expects
- fmc_timing.DataLatency = 4;
+ // use 6 to match what FMC arbiter in the FPGA expects
+ fmc_timing.DataLatency = 6;
// don't care in sync mode
fmc_timing.AccessMode = FMC_ACCESS_MODE_A;