Closed AttwellBrian closed 6 years ago
I noticed that there are circumstances where calling generic_timer_count() will result in the tbclk register not being reread. This is because of compiler optimizations. Using the volatile asm statement prevents this.
generic_timer_count()
tbclk
I noticed that there are circumstances where calling
generic_timer_count()
will result in thetbclk
register not being reread. This is because of compiler optimizations. Using the volatile asm statement prevents this.