diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-01-02 20:53:42 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-01-02 20:53:42 +0100 |
commit | 9129af503c8211d713c8a160a3b6f3f86b328639 (patch) | |
tree | 3cd9ff26f4d323fc553b2a99d56be9b81a57a4c4 /apps/dma1/CMakeLists.txt | |
parent | aae314fead54dab7b258f3a6c7ac1615833f9987 (diff) | |
download | stm32f103-playground-9129af503c8211d713c8a160a3b6f3f86b328639.tar.gz stm32f103-playground-9129af503c8211d713c8a160a3b6f3f86b328639.tar.bz2 stm32f103-playground-9129af503c8211d713c8a160a3b6f3f86b328639.tar.xz stm32f103-playground-9129af503c8211d713c8a160a3b6f3f86b328639.zip |
o Adding a utility to dump segment sizes from the generated ELF files.
o Adding os2 with support for critical sections. More to come.
o Adding dma1 to test DMA + SPI.
Diffstat (limited to 'apps/dma1/CMakeLists.txt')
-rw-r--r-- | apps/dma1/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/dma1/CMakeLists.txt b/apps/dma1/CMakeLists.txt new file mode 100644 index 0000000..689e437 --- /dev/null +++ b/apps/dma1/CMakeLists.txt @@ -0,0 +1,19 @@ +add_executable(dma1.elf dma1.cpp + ${STM32F10X_STDPERIPH_LIB}/Libraries/CMSIS/CM3/CoreSupport/core_cm3.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/misc.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_rcc.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.c + ${STM32F10X_STDPERIPH_LIB}/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_dma.c + $<TARGET_OBJECTS:playground> + ) + +target_include_directories(dma1.elf PUBLIC + $<TARGET_PROPERTY:playground,INTERFACE_INCLUDE_DIRECTORIES> + ) +target_compile_definitions(dma1.elf PUBLIC ${STM32F10X_STDPERIPH_DEFINES}) +target_link_libraries(dma1.elf tinyprintf) + +set_target_properties(dma1.elf PROPERTIES LINK_FLAGS "-nostartfiles -T${CMAKE_SOURCE_DIR}/cmake/stm32.ld") +add_extra_commands(dma1.elf) |