f3 use offical st driver repo
This commit is contained in:
@@ -12,19 +12,20 @@ CFLAGS += \
|
||||
# mcu driver cause following warnings
|
||||
CFLAGS += -Wno-error=unused-parameter
|
||||
|
||||
ST_HAL_DRIVER = hw/mcu/st/st_driver/STM32F3xx_HAL_Driver
|
||||
ST_CMSIS = hw/mcu/st/st_driver/CMSIS/Device/ST/STM32F3xx
|
||||
ST_FAMILY = f3
|
||||
ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY)
|
||||
ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY)xx_hal_driver
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/$(BOARD)/STM32F303VCTx_FLASH.ld
|
||||
|
||||
SRC_C += \
|
||||
$(ST_CMSIS)/Source/Templates/system_stm32f3xx.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32f3xx_hal.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32f3xx_hal_cortex.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32f3xx_hal_rcc.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32f3xx_hal_rcc_ex.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32f3xx_hal_gpio.c
|
||||
$(ST_CMSIS)/Source/Templates/system_stm32$(ST_FAMILY)xx.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_cortex.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_rcc.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_rcc_ex.c \
|
||||
$(ST_HAL_DRIVER)/Src/stm32$(ST_FAMILY)xx_hal_gpio.c
|
||||
|
||||
SRC_S += \
|
||||
$(ST_CMSIS)/Source/Templates/gcc/startup_stm32f303xc.s
|
||||
|
||||
Reference in New Issue
Block a user