diff options
Diffstat (limited to 'lib/chibios/os/hal/ports/STM32/STM32F0xx/platform.mk')
-rw-r--r-- | lib/chibios/os/hal/ports/STM32/STM32F0xx/platform.mk | 44 |
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. | ||
2 | PLATFORMSRC := $(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. | ||
7 | PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \ | ||
8 | $(CHIBIOS)/os/hal/ports/STM32/STM32F0xx | ||
9 | |||
10 | # Optional platform files. | ||
11 | ifeq ($(USE_SMART_BUILD),yes) | ||
12 | |||
13 | # Configuration files directory | ||
14 | ifeq ($(HALCONFDIR),) | ||
15 | ifeq ($(CONFDIR),) | ||
16 | HALCONFDIR = . | ||
17 | else | ||
18 | HALCONFDIR := $(CONFDIR) | ||
19 | endif | ||
20 | endif | ||
21 | |||
22 | HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define")) | ||
23 | |||
24 | else | ||
25 | endif | ||
26 | |||
27 | # Drivers compatible with the platform. | ||
28 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv1/driver.mk | ||
29 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/driver.mk | ||
30 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk | ||
31 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk | ||
32 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk | ||
33 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/driver.mk | ||
34 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv2/driver.mk | ||
35 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk | ||
36 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv2/driver.mk | ||
37 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk | ||
38 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv2/driver.mk | ||
39 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/USBv1/driver.mk | ||
40 | include $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/driver.mk | ||
41 | |||
42 | # Shared variables | ||
43 | ALLCSRC += $(PLATFORMSRC) | ||
44 | ALLINC += $(PLATFORMINC) | ||