• Alessandro Rubini's avatar
    wr-servo: changes for the better · ac320650
    Alessandro Rubini authored
    What happened, sometimes, is that the phase setpoint take a meaningless
    (and high) value. This is because we were into SYNC_NSEC and moved
    to SYNC_PHASE without checking. Maybe because of other problems too.
    That situation led to a lockup of the softpll, which tries to
    reach an unreachable setpoint.
    
    Now we force to stay in SYNC_NSEC if the offset is more than one cycle
    (and SYNC_SEC if more than one second).
    
    As a side effect, the phase setpoint is always 0..16ns (while earlier
    I got setpoints of 1.5 of 17.5 etc, up to 64.5 for the same setup and
    same temperature).
    
    The problem here is: what is going to happen if, by thermal effect,
    the phase setpoint crosses the 0..16n interval?
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    ac320650
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...