aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/rules.mk')
-rw-r--r--libmaple/rules.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/libmaple/rules.mk b/libmaple/rules.mk
index 41f5601..71979f0 100644
--- a/libmaple/rules.mk
+++ b/libmaple/rules.mk
@@ -27,10 +27,11 @@ cSRCS_$(d) += timer.c
cSRCS_$(d) += usart.c
cSRCS_$(d) += usart_private.c
cSRCS_$(d) += util.c
-# These still need to be brought back for F1:
-# cSRCS_$(d) += i2c.c
-
sSRCS_$(d) := exc.S
+# I2C support must be ported to F2:
+ifeq ($(MCU_SERIES),stm32f1)
+cSRCS_$(d) += i2c.c
+endif
cFILES_$(d) := $(cSRCS_$(d):%=$(d)/%)
sFILES_$(d) := $(sSRCS_$(d):%=$(d)/%)