4 set(STM32F7_HAL_DIR "${MAIN_LIB_DIR}/main/STM32F7/Drivers/STM32F7xx_HAL_Driver")
10 stm32f7xx_hal_cortex.c
12 stm32f7xx_hal_dac_ex.c
14 stm32f7xx_hal_dma_ex.c
16 stm32f7xx_hal_flash_ex.c
19 stm32f7xx_hal_i2c_ex.c
21 stm32f7xx_hal_pcd_ex.c
23 stm32f7xx_hal_pwr_ex.c
25 stm32f7xx_hal_rcc_ex.c
27 stm32f7xx_hal_rtc_ex.c
30 stm32f7xx_hal_tim_ex.c
42 list(TRANSFORM STM32F7_HAL_SRC PREPEND "${STM32F7_HAL_DIR}/Src/")
44 set(STM32F7_CMSIS_DEVICE_DIR "${MAIN_LIB_DIR}/main/STM32F7/Drivers/CMSIS/Device/ST/STM32F7xx")
46 set(STM32F7_VCP_DIR "${MAIN_SRC_DIR}/vcp_hal")
53 list(TRANSFORM STM32F7_VCP_SRC PREPEND "${STM32F7_VCP_DIR}/")
55 set(STM32F7_INCLUDE_DIRS
56 ${STM32F7_HAL_DIR}/Inc
57 ${STM32F7_CMSIS_DEVICE_DIR}/Include
60 main_sources(STM32F7_SRC
61 target/system_stm32f7xx.c
63 config/config_streamer_stm32f7.c
64 config/config_streamer_ram.c
65 config/config_streamer_extflash.c
67 drivers/adc_stm32f7xx.c
69 drivers/dma_stm32f7xx.c
70 drivers/bus_spi_hal_ll.c
72 drivers/timer_impl_hal.c
73 drivers/timer_stm32f7xx.c
74 drivers/system_stm32f7xx.c
75 drivers/serial_uart_stm32f7xx.c
76 drivers/serial_uart_hal.c
77 drivers/sdcard/sdmmc_sdio_f7xx.c
80 main_sources(STM32F7_MSC_SRC
81 drivers/usb_msc_f7xx.c
84 set(STM32F7_DEFINITIONS
85 ${CORTEX_M7_DEFINITIONS}
90 function(target_stm32f7xx)
92 SOURCES ${STM32F7_HAL_SRC} ${STM32F7_SRC}
93 COMPILE_DEFINITIONS ${STM32F7_DEFINITIONS}
94 COMPILE_OPTIONS ${CORTEX_M7_COMMON_OPTIONS} ${CORTEX_M7_COMPILE_OPTIONS}
95 INCLUDE_DIRECTORIES ${STM32F7_INCLUDE_DIRS}
96 LINK_OPTIONS ${CORTEX_M7_COMMON_OPTIONS} ${CORTEX_M7_LINK_OPTIONS}
98 MSC_SOURCES ${STM32F7_USBMSC_SRC} ${STM32F7_MSC_SRC}
99 VCP_SOURCES ${STM32F7_USB_SRC} ${STM32F7_VCP_SRC}
100 VCP_INCLUDE_DIRECTORIES ${STM32F7_USB_INCLUDE_DIRS} ${STM32F7_VCP_DIR}
102 OPENOCD_TARGET stm32f7x
110 macro(define_target_stm32f7 subfamily size)
111 function(target_stm32f7${subfamily}x${size} name)
113 string(TOUPPER ${size} upper_size)
114 get_stm32_flash_size(flash_size ${size})
115 if(flash_size GREATER 512)
122 STM32F7${subfamily}xx
123 STM32F7${subfamily}x${upper_size}
124 MCU_FLASH_SIZE=${flash_size}
128 STARTUP startup_stm32f7${subfamily}xx.s
129 COMPILE_DEFINITIONS ${definitions}
130 LINKER_SCRIPT stm32_flash_f7${subfamily}x${size}
138 define_target_stm32f7(22 e)
139 define_target_stm32f7(45 g)
140 define_target_stm32f7(46 g)
141 define_target_stm32f7(65 g)
142 define_target_stm32f7(65 i)