fix f4 wip

This commit is contained in:
crinq
2020-10-10 23:52:11 +02:00
parent 37c797cbd4
commit 21cc9fa79e
90 changed files with 121 additions and 22 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ ifneq (,$(findstring CMSIS, $(LIBS)))
# peripheral include
INCDIRS := $(INCDIRS) $(LIBPATH)/Device/ST/STM32F4xx/Include
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f40_41xxx.s
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/Device/ST/STM32F4xx/Source/system_stm32f4xx.c
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/Device/ST/STM32F4xx/Source/startup_stm32f40_41xxx.s
endif
# check cpu define
+11
View File
@@ -0,0 +1,11 @@
ifneq (,$(findstring ST_OTG, $(LIBS)))
# lib path
LIBPATH = $(FRAMEWORK_DIR)/libs/st_otg
$(info using LIB: $(LIBPATH))
# peripheral include
INCDIRS := $(INCDIRS) $(LIBPATH)/inc
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/usb_core.c
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/usb_dcd.c
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/usb_dcd_int.c
endif
+51 -4
View File
@@ -15,10 +15,57 @@ ifneq (,$(findstring STM32F4, $(CPU)))
endif
# peripheral include
INCDIRS := $(INCDIRS) $(LIBPATH)/inc/
INCDIRS := $(INCDIRS) $(LIBPATH)/inc
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/misc.c
ifneq (,$(findstring UART ,$(PERIPH)))
LIBSOURCES := $(LIBSOURCES) &(LIBPATH)/src/stm32f4xx_usart.c
ifneq (,$(findstring UART, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_usart.c
endif
ifneq (,$(findstring ADC, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_adc.c
endif
ifneq (,$(findstring TIM, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_tim.c
endif
ifneq (,$(findstring DAC, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_dac.c
endif
ifneq (,$(findstring GPIO, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_gpio.c
endif
ifneq (,$(findstring CRC, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_crc.c
endif
ifneq (,$(findstring RCC, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_rcc.c
endif
ifneq (,$(findstring PWR, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_pwr.c
endif
ifneq (,$(findstring FLASH, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_flash.c
endif
ifneq (,$(findstring DMA, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_dma.c
endif
ifneq (,$(findstring SPI, $(PERIPH)))
LIBSOURCES := $(LIBSOURCES) $(LIBPATH)/src/stm32f4xx_spi.c
endif
$(info libsrc: $(LIBSOURCES))
$(info inc: $(INCDIRS))
endif
endif
endif
+9
View File
@@ -0,0 +1,9 @@
ifneq (,$(findstring STM32F3, $(CPU)))
ifneq (,$(findstring ST_USB, $(LIBS)))
# lib path
LIBPATH = $(FRAMEWORK_DIR)/libs/st_usb_f3
$(info using LIB: $(LIBPATH))
# peripheral include
endif
endif

Some files were not shown because too many files have changed in this diff Show More