Integrate f1ll (compiles, untested)
This commit is contained in:
parent
0159a9cb45
commit
2b17bb1dae
32 changed files with 924 additions and 128 deletions
|
@ -12,6 +12,8 @@ set(CMAKE_C_STANDARD 11)
|
|||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_C_EXTENSIONS ON)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# Define the build type
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
|
@ -32,13 +34,20 @@ project(${CMAKE_PROJECT_NAME})
|
|||
message("Build type: " ${CMAKE_BUILD_TYPE})
|
||||
|
||||
# Enable CMake support for ASM and C languages
|
||||
enable_language(C ASM)
|
||||
enable_language(C CXX ASM)
|
||||
|
||||
# Create an executable object type
|
||||
add_executable(${CMAKE_PROJECT_NAME})
|
||||
|
||||
# Add STM32CubeMX generated sources
|
||||
add_subdirectory(cmake/stm32cubemx)
|
||||
add_subdirectory(platform)
|
||||
add_subdirectory(app)
|
||||
add_subdirectory(f1ll)
|
||||
|
||||
target_link_libraries(stm32cubemx INTERFACE
|
||||
app
|
||||
)
|
||||
|
||||
# Link directories setup
|
||||
target_link_directories(${CMAKE_PROJECT_NAME} PRIVATE
|
||||
|
@ -65,6 +74,9 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
|
|||
stm32cubemx
|
||||
|
||||
# Add user defined libraries
|
||||
# platform
|
||||
# f1ll
|
||||
app
|
||||
)
|
||||
|
||||
# Poor quality LL code from ST
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue