
18 Jun
2015
18 Jun
'15
2:34 p.m.
On Wednesday, June 17, 2015 at 03:44:41 PM, Jeroen Hofstee wrote:
Hello Marek,
- while (get_timer(bcm_host->last_write) < bcm_host->twoticks_delay)
- while (timer_get_us() < bcm_host->last_write +
bcm_host->twoticks_delay) ;
Can this counter / the right side of the comparison not overflow?
Yes it can -- what do you suggest to make it overflow-safe in this particular case ?
Best regards, Marek Vasut