cvorg/clkgen.c: added a new function clkgen_check_write
commitd4d56b311a9efe49c6c1e16be7e87aa5fde2fd7f
authorSamuel Iglesias Gonsalvez <samuel.iglesias.gonsalvez@cern.ch>
Fri, 14 Jan 2011 14:05:23 +0000 (14 15:05 +0100)
committerJuan David Gonzalez Cobas <dcobas@cern.ch>
Fri, 14 Jan 2011 14:22:54 +0000 (14 15:22 +0100)
tree69a8862e2145df800fef2273697e4775783cf7b3
parentf9d79b851b5b3b04605d98dd1957e11dd9f81142
cvorg/clkgen.c: added a new function clkgen_check_write

It checks that the data written to be transfered across the SPI connection was
already sent. The VHDL code has been modified for that purpose.

This solution fixes an old bug related to PLL configuration: sometimes we
change the PLL setup and a timeout appears because the operation was not
done.

Signed-off-by: Samuel Iglesias Gonsalvez <samuel.iglesias.gonsalvez@cern.ch>
Signed-off-by: Juan David Gonzalez Cobas <dcobas@cern.ch>
cvorg/driver/clkgen.c