Similar to r255816, fix the math for the DELAY() calculation. It was off
by a really small amount because of the higher timer resolution. Approved by: adrian (mentor) Verified on: BBB
This commit is contained in:
parent
6cec74b2e4
commit
87bd9889d1
@ -359,7 +359,7 @@ DELAY(int usec)
|
||||
}
|
||||
|
||||
/* Get the number of times to count */
|
||||
counts = usec * ((am335x_dmtimer_tc.tc_frequency / 1000000) + 1);
|
||||
counts = usec * (am335x_dmtimer_tc.tc_frequency / 1000000) + 1;
|
||||
|
||||
first = am335x_dmtimer_tc_read_4(DMTIMER_TCRR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user