diff options
author | Sergey Vlasov <[email protected]> | 2023-02-12 09:14:34 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2023-02-12 17:14:34 +1100 |
commit | 584b7cf801f98d58aefe5a9bbc4a163aba4c1b74 (patch) | |
tree | 16a82839ac645b3adf5775377583fbcbd27a8ed5 /platforms/timer.c | |
parent | b1f4d49c43e5034b44e34c5ee6e2d9a72195e41d (diff) | |
download | qmk_firmware-584b7cf801f98d58aefe5a9bbc4a163aba4c1b74.tar.gz qmk_firmware-584b7cf801f98d58aefe5a9bbc4a163aba4c1b74.zip |
Fix build failures with `OPT = 0` due to inline functions (#19767)
Co-authored-by: Joel Challis <[email protected]>
Diffstat (limited to 'platforms/timer.c')
-rw-r--r-- | platforms/timer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platforms/timer.c b/platforms/timer.c new file mode 100644 index 0000000000..26038dcda3 --- /dev/null +++ b/platforms/timer.c @@ -0,0 +1,8 @@ +// Copyright 2023 Sergey Vlasov (@sigprof) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "timer.h" + +// Generate out-of-line copies for inline functions defined in timer.h. +extern inline fast_timer_t timer_read_fast(void); +extern inline fast_timer_t timer_elapsed_fast(fast_timer_t last); |