aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/hal/ports/STM32/STM32F0xx/platform.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/hal/ports/STM32/STM32F0xx/platform.mk')
-rw-r--r--lib/chibios/os/hal/ports/STM32/STM32F0xx/platform.mk44
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/ports/STM32/STM32F0xx/platform.mk b/lib/chibios/os/hal/ports/STM32/STM32F0xx/platform.mk
new file mode 100644
index 000000000..276f3556a
--- /dev/null
+++ b/lib/chibios/os/hal/ports/STM32/STM32F0xx/platform.mk
@@ -0,0 +1,44 @@
1# Required platform files.
2PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
3 $(CHIBIOS)/os/hal/ports/STM32/STM32F0xx/stm32_isr.c \
4 $(CHIBIOS)/os/hal/ports/STM32/STM32F0xx/hal_lld.c
5
6# Required include directories.
7PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
8 $(CHIBIOS)/os/hal/ports/STM32/STM32F0xx
9
10# Optional platform files.
11ifeq ($(USE_SMART_BUILD),yes)
12
13# Configuration files directory
14ifeq ($(HALCONFDIR),)
15 ifeq ($(CONFDIR),)
16 HALCONFDIR = .
17 else
18 HALCONFDIR := $(CONFDIR)
19 endif
20endif
21
22HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define"))
23
24else
25endif
26
27# Drivers compatible with the platform.
28include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv1/driver.mk
29include $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/driver.mk
30include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk
31include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk
32include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
33include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/driver.mk
34include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/driver.mk
35include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk
36include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/driver.mk
37include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
38include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk
39include $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/driver.mk
40include $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/driver.mk
41
42# Shared variables
43ALLCSRC += $(PLATFORMSRC)
44ALLINC += $(PLATFORMINC)