mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-01-19 00:00:39 -05:00
Added the minimal example (#823)
* re-adding main.c to the minimal example * Uncrustify: triggered by comment. * Update minimal_freertos_example/main.c Co-authored-by: Soren Ptak <ptaksoren@gmail.com> * Add in the deleted cmake list * Added a single newline at the end of the cmake * Cleanup the CMakelists * updates the main & Cmake * Formatting --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
This commit is contained in:
parent
2be332ae21
commit
1b2b0904ce
2 changed files with 133 additions and 0 deletions
28
cmake_example/CMakeLists.txt
Normal file
28
cmake_example/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
cmake_minimum_required(VERSION 3.15)
|
||||
|
||||
project(example)
|
||||
|
||||
set(FREERTOS_KERNEL_PATH "../")
|
||||
|
||||
# Add the freertos_config for FreeRTOS-Kernel
|
||||
add_library(freertos_config INTERFACE)
|
||||
|
||||
target_include_directories(freertos_config
|
||||
INTERFACE
|
||||
../sample_configuration
|
||||
)
|
||||
|
||||
# Select the heap port. values between 1-4 will pick a heap.
|
||||
# set(FREERTOS_HEAP "4" CACHE STRING "" FORCE)
|
||||
|
||||
# Select the native compile PORT
|
||||
set(FREERTOS_PORT "TEMPLATE" CACHE STRING "" FORCE)
|
||||
|
||||
# Adding the FreeRTOS-Kernel subdirectory
|
||||
add_subdirectory(${FREERTOS_KERNEL_PATH} FreeRTOS-Kernel)
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
main.c
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} freertos_kernel freertos_config)
|
||||
Loading…
Add table
Add a link
Reference in a new issue