Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SMP template port and example #900

Merged
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions examples/cmake_example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,29 @@ target_compile_options(freertos_kernel PRIVATE
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-covered-switch-default>
$<$<COMPILE_LANG_AND_ID:C,Clang>:-Wno-cast-align> )

# example project to build the template port for single core FreeRTOS

add_executable(${PROJECT_NAME}
main.c
)

target_link_libraries(${PROJECT_NAME} freertos_kernel freertos_config)

########################################################################
# smp_example project to build the template port for smp FreeRTOS

# Add the freertos_config_smp for FreeRTOS-Kernel
add_library( freertos_config_smp INTERFACE )

target_include_directories( freertos_config_smp
INTERFACE
../sample_configuration/smp
)

add_executable( smp_example
main.c
)

target_link_libraries( smp_example freertos_kernel freertos_config_smp )

########################################################################
Loading
Loading