stm32f1: Use __always_inline on timer_read_time

Some older versions of gcc need the __always_inline directive in order
to inline timer_read_time.  Inlining that function is important for
performance on the stm32f1.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor committed 2018-10-11 22:20:02 -04:00
1 parent aa693fbdc1
commit 0225d17343
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ timer_kick(void)
static uint32_t timer_high;
// Return the current time (in absolute clock ticks).
inline uint32_t
__always_inline uint32_t
timer_read_time(void)
{
uint32_t th = readl(&timer_high);