Browse Source

timer clock frequency is equal to CpuClockFrequency / 2

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@8636 8c9fc860-2736-0410-a75d-ab315db34111
eth.morozova 6 years ago
parent
commit
fe7acb7ad8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/Zynq.PrecisionTimer.Mod

+ 1 - 1
source/Zynq.PrecisionTimer.Mod

@@ -30,5 +30,5 @@ VAR
 	frequencyInHz: Counter;
 
 BEGIN
-	frequencyInHz := BootConfig.GetIntValue("CpuClockHz");
+	frequencyInHz := BootConfig.GetIntValue("CpuClockHz") DIV 2;
 END PrecisionTimer.