Commit 3ec2591e authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

softpll: don't overwrite 1-PPS out pulse width when changing modes

This is needed for PPSGen handling cleanup. Now PPSGen is controlled by PPSi.
parent 6e702d90
......@@ -310,7 +310,7 @@ void spll_init(int mode, int slave_ref_channel, int align_pps)
SPLL->DEGLITCH_THR = 1000;
PPSG->ESCR = 0;
PPSG->CR = PPSG_CR_CNT_EN | PPSG_CR_PWIDTH_W(PPS_WIDTH);
PPSG->CR |= PPSG_CR_CNT_EN;
if(mode == SPLL_MODE_DISABLED)
s->seq_state = SEQ_DISABLED;
......
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