mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-08-12 09:30:30 +02:00
added time for firmware to measrue actual value after frequency change
This commit is contained in:
@@ -327,6 +327,11 @@ int ALTERA_PLL_SetOutputFrequency(int clkIndex, int pllVCOFreqMhz, int value) {
|
||||
}
|
||||
return (int)temp;
|
||||
*/
|
||||
|
||||
#if defined(CHIPTESTBOARDD)
|
||||
// wait for firmware to measure the actual frequency
|
||||
usleep(2 * 1000 * 1000);
|
||||
#endif
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
@@ -5882,8 +5882,8 @@ int set_clock_frequency(int file_des) {
|
||||
("retval %s: %d %s\n", modeName, retval,
|
||||
myDetectorType == XILINX_CHIPTESTBOARD ? "kHz"
|
||||
: "MHz"));
|
||||
#if !defined(XILINX_CHIPTESTBOARDD)
|
||||
// XCTB will give the actual frequency, which is not
|
||||
#if !defined(XILINX_CHIPTESTBOARDD) && !defined(CHIPTESTBOARDD)
|
||||
// both CTB's will give the actual frequency, which is not
|
||||
// 100% identical to the set frequency
|
||||
validate(&ret, mess, val, retval, modeName, DEC);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user