aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32f1
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32f1')
-rw-r--r--src/stm32f1/Makefile1
-rw-r--r--src/stm32f1/timer.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/stm32f1/Makefile b/src/stm32f1/Makefile
index 66a677db..44643e5e 100644
--- a/src/stm32f1/Makefile
+++ b/src/stm32f1/Makefile
@@ -11,7 +11,6 @@ CFLAGS += -mthumb -mcpu=cortex-m3
CFLAGS += -Ilib/cmsis-core
CFLAGS += -Ilib/cmsis-stm32f1/include -Ilib/hal-stm32f1/include
CFLAGS += -DSTM32F103xB
-CFLAGS += -O3
CFLAGS_klipper.elf += -T $(OUT)stm32f1.ld
CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
diff --git a/src/stm32f1/timer.c b/src/stm32f1/timer.c
index e9b96b0a..99eb751f 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).
-uint32_t
+inline uint32_t
timer_read_time(void)
{
uint32_t th = readl(&timer_high);