aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/hal/ports/STM32/STM32F4xx/platform.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/hal/ports/STM32/STM32F4xx/platform.mk')
-rw-r--r--lib/chibios/os/hal/ports/STM32/STM32F4xx/platform.mk49
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.
2PLATFORMSRC := $(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.
8PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
9 $(CHIBIOS)/os/hal/ports/STM32/STM32F4xx
10
11# Optional platform files.
12ifeq ($(USE_SMART_BUILD),yes)
13
14# Configuration files directory
15ifeq ($(HALCONFDIR),)
16 ifeq ($(CONFDIR),)
17 HALCONFDIR = .
18 else
19 HALCONFDIR := $(CONFDIR)
20 endif
21endif
22
23HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define"))
24
25else
26endif
27
28# Drivers compatible with the platform.
29include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv2/driver.mk
30include $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/driver.mk
31include $(CHIBIOS)/os/hal/ports/STM32/LLD/CRYPv1/driver.mk
32include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk
33include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv2/driver.mk
34include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
35include $(CHIBIOS)/os/hal/ports/STM32/LLD/GPIOv2/driver.mk
36include $(CHIBIOS)/os/hal/ports/STM32/LLD/I2Cv1/driver.mk
37include $(CHIBIOS)/os/hal/ports/STM32/LLD/MACv1/driver.mk
38include $(CHIBIOS)/os/hal/ports/STM32/LLD/OTGv1/driver.mk
39include $(CHIBIOS)/os/hal/ports/STM32/LLD/QUADSPIv1/driver.mk
40include $(CHIBIOS)/os/hal/ports/STM32/LLD/RTCv2/driver.mk
41include $(CHIBIOS)/os/hal/ports/STM32/LLD/SPIv1/driver.mk
42include $(CHIBIOS)/os/hal/ports/STM32/LLD/SDIOv1/driver.mk
43include $(CHIBIOS)/os/hal/ports/STM32/LLD/TIMv1/driver.mk
44include $(CHIBIOS)/os/hal/ports/STM32/LLD/USARTv1/driver.mk
45include $(CHIBIOS)/os/hal/ports/STM32/LLD/xWDGv1/driver.mk
46
47# Shared variables
48ALLCSRC += $(PLATFORMSRC)
49ALLINC += $(PLATFORMINC)