Commit 6287bb7b authored by Aurelio Colosimo's avatar Aurelio Colosimo

ppsi still uses pps_gen_adjust_nsec, and how_much must not be / 8

I'm not pretty sure about this patch, but, according to my tests, the
value to be used inside adjust_nsec is the number of nseconds itself, not
the number of cycles.
parent 64549f65
......@@ -54,7 +54,7 @@ void pps_gen_adjust_nsec(int32_t how_much)
PPSG->ADJ_UTCLO = 0;
PPSG->ADJ_UTCHI = 0;
PPSG->ADJ_NSEC = ( how_much / 8 );
PPSG->ADJ_NSEC = how_much; /* FIXME check: removed division by 8? */
PPSG->CR = PPSG_CR_CNT_EN | PPSG_CR_PWIDTH_W(PPS_PULSE_WIDTH) | PPSG_CR_CNT_ADJ;
#endif
......
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