stm32_serDes_protobuf_project/libs/stm32f4xx/CMakeLists.txt

59 lines
2.6 KiB
CMake
Raw Normal View History

2024-04-30 13:10:11 +03:00
project(stm32f4_lib C ASM)
2024-04-08 14:21:04 +03:00
set(DEVICE_FAMILY STM32F439xx)
2024-05-04 17:20:57 +03:00
# get_filename_component(LINKER_SCRIPT src/stm32f439zi_flash.ld ABSOLUTE)
get_filename_component(LINKER_SCRIPT src/STM32F439ZITx_FLASH.ld ABSOLUTE)
2024-04-08 14:21:04 +03:00
add_library(stm32f4xx STATIC
src/STM32F4xx_StdPeriph_Driver/misc.c
2024-04-30 13:10:11 +03:00
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_hal_eth.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4x7_eth.c
2024-04-08 14:21:04 +03:00
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_adc.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_can.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_crc.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_cryp.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_cryp_aes.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_cryp_des.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_cryp_tdes.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_dac.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_dbgmcu.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_dcmi.c
2024-05-02 17:19:55 +03:00
src/STM32F4xx_StdPeriph_Driver/stm32f4xx_dma.c
2024-04-08 14:21:04 +03:00
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_exti.c
2024-05-13 15:02:23 +03:00
src/STM32F4xx_StdPeriph_Driver/stm32f4xx_flash.c
2024-04-08 14:21:04 +03:00
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_fsmc.c
src/STM32F4xx_StdPeriph_Driver/stm32f4xx_gpio.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_hash.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_hash_md5.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_hash_sha1.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_i2c.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_iwdg.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_pwr.c
src/STM32F4xx_StdPeriph_Driver/stm32f4xx_rcc.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_rng.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_rtc.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_sdio.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_spi.c
src/STM32F4xx_StdPeriph_Driver/stm32f4xx_syscfg.c
src/STM32F4xx_StdPeriph_Driver/stm32f4xx_tim.c
src/STM32F4xx_StdPeriph_Driver/stm32f4xx_usart.c
# src/STM32F4xx_StdPeriph_Driver/stm32f4xx_wwdg.c
src/system_stm32f4xx.c
2024-05-04 17:20:57 +03:00
# src/startup_stm32f4xx.S
src/startup_stm32f439xx.S
2024-04-08 14:21:04 +03:00
)
target_include_directories(stm32f4xx PUBLIC
inc
inc/CMSIS
inc/STM32F4xx_StdPeriph_Driver
)
target_compile_definitions(stm32f4xx PUBLIC USE_STDPERIPH_DRIVER)
target_compile_definitions(stm32f4xx PUBLIC ${DEVICE_FAMILY})
target_compile_definitions(stm32f4xx PUBLIC HSE_VALUE=8000000)
2024-05-13 15:21:22 +03:00
target_compile_definitions(stm32f4xx PUBLIC SYSTEM_CORE_CLOCK=180000000)
2024-04-10 19:45:21 +03:00
target_compile_definitions(stm32f4xx PUBLIC USE_STM324x7I_EVAL)
2024-04-08 14:21:04 +03:00
2024-04-30 13:10:11 +03:00
target_compile_options(stm32f4xx PRIVATE -nostartfiles)
2024-04-08 14:21:04 +03:00
target_link_libraries(stm32f4xx PUBLIC -T${LINKER_SCRIPT})