Quoting Heiko Stuebner (2015-09-30 07:07:38)
> From: Douglas Anderson
>
> Let's use DIV_ROUND_CLOSEST for rounding, not just truncating
> division. This lets us get closer to the right rate.
>
> Before this:
> set_phase(86) delay_nums=26 reg[0xf000420c]=0x468
From: Douglas Anderson
Let's use DIV_ROUND_CLOSEST for rounding, not just truncating
division. This lets us get closer to the right rate.
Before this:
set_phase(86) delay_nums=26 reg[0xf000420c]=0x468 actual_degrees=83
set_phase(89) delay_nums=27