Commit a36774bc authored by Peter Jansweijer's avatar Peter Jansweijer

variable DAC_BITS for main PLL

parent 1357d0bb
Pipeline #3075 failed with stage
in 0 seconds
......@@ -27,7 +27,7 @@ void mpll_init(struct spll_main_state *s, int id_ref,
{
/* Frequency branch PI controller */
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