refactor stm32f407 to use st hal api

This commit is contained in:
hathach
2019-07-22 18:35:22 +07:00
parent cb8a33ca87
commit be4eeeb943
3 changed files with 105 additions and 50 deletions
+8 -2
View File
@@ -13,14 +13,20 @@ CFLAGS += \
LD_FILE = hw/bsp/stm32f407disco/STM32F407VGTx_FLASH.ld
SRC_C += \
hw/mcu/st/system-init/system_stm32f4xx.c
hw/mcu/st/system-init/system_stm32f4xx.c \
hw/mcu/st/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c \
hw/mcu/st/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c \
hw/mcu/st/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c \
hw/mcu/st/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c
SRC_S += \
hw/mcu/st/startup/stm32f4/startup_stm32f407xx.s
INC += \
$(TOP)/hw/mcu/st/cmsis \
$(TOP)/hw/mcu/st/stm32lib/CMSIS/STM32F4xx/Include \
$(TOP)/hw/mcu/st/cmsis
$(TOP)/hw/mcu/st/stm32lib/STM32F4xx_HAL_Driver/Inc \
$(TOP)/hw/bsp/stm32f407disco
# For TinyUSB port source
VENDOR = st