CSS: move spindle-sync command generator from tp.c to control.c