Fix DELAY() on RPi, the wrong math was making it take twice it should.

Reported by:	Alexander <sht@ropnet.ru>
Approved by:	adrian (mentor)
Approved by:	re (gjb)
This commit is contained in:
Luiz Otavio O Souza 2013-09-23 14:00:18 +00:00
parent 0f9eee39f0
commit c58e1e485c

View File

@ -296,7 +296,7 @@ DELAY(int usec)
}
/* Get the number of times to count */
counts = usec * ((bcm_systimer_tc.tc_frequency / 1000000) + 1);
counts = usec * (bcm_systimer_tc.tc_frequency / 1000000) + 1;
first = bcm_systimer_tc_read_4(SYSTIMER_CLO);