Commit fb5e791f authored by Peter Jansweijer's avatar Peter Jansweijer

variable DAC_BITS for main PLL

parent 6d6f2c60
Pipeline #4807 failed with stage
in 3 minutes and 55 seconds
......@@ -29,7 +29,7 @@ void mpll_init(struct spll_main_state *s, int id_ref, int id_out)
s->ps_freeze = 0;
s->vco_freeze = 0;
s->pi.y_min = 5;
s->pi.y_max = 65530;
s->pi.y_max = (1 << DAC_BITS) - 5;
s->pi.anti_windup = 1;
s->pi.bias = 30000;
s->pi.shift = PI_FRACBITS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment