diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-10-11 22:11:18 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-10-11 22:20:02 -0400 |
commit | 0225d173439af901d05bc7ab6c0dcc56c93ae805 (patch) | |
tree | c388873abd59067df8a75f0b9ee35351bf2494a2 | |
parent | aa693fbdc16da14fda92f60585b4091e0d060110 (diff) | |
download | kutter-0225d173439af901d05bc7ab6c0dcc56c93ae805.tar.gz kutter-0225d173439af901d05bc7ab6c0dcc56c93ae805.tar.xz kutter-0225d173439af901d05bc7ab6c0dcc56c93ae805.zip |
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>
-rw-r--r-- | src/stm32f1/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32f1/timer.c b/src/stm32f1/timer.c index 99eb751f..cff9da6b 100644 --- a/src/stm32f1/timer.c +++ b/src/stm32f1/timer.c @@ -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); |