aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-12 16:01:12 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-12 16:02:13 -0400
commitba1d9f5eb6539003515b958b4935a06868e27733 (patch)
tree9f2917f5992394febb08101bf246b3e554000db5 /libmaple
parent1d4c35901150ac7adab003a7fd4f432ec3250c91 (diff)
downloadlibrambutan-ba1d9f5eb6539003515b958b4935a06868e27733.tar.gz
librambutan-ba1d9f5eb6539003515b958b4935a06868e27733.zip
Build libmaple/dma.c on STM32F1.
F2 doesn't work yet. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/rules.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmaple/rules.mk b/libmaple/rules.mk
index be93d2e..0c29ec7 100644
--- a/libmaple/rules.mk
+++ b/libmaple/rules.mk
@@ -13,7 +13,9 @@ CFLAGS_$(d) = $(LIBMAPLE_PRIVATE_INCLUDES) $(LIBMAPLE_INCLUDES) -Wall -Werror
# Local rules and targets
cSRCS_$(d) := adc.c
cSRCS_$(d) += dac.c
-# cSRCS_$(d) += dma.c
+ifeq ($(MCU_SERIES),stm32f1) # FIXME add F2 support
+cSRCS_$(d) += dma.c
+endif
cSRCS_$(d) += exti.c
cSRCS_$(d) += flash.c
cSRCS_$(d) += gpio.c