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 2018-10-11 22:11:18 -04:00
parent aa693fbdc1
commit 0225d17343
1 changed files with 1 additions and 1 deletions

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);