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