app_target_setup_os

Set up target for platform OS.

概要

app_target_setup_os(<target>)
							

描述

Sets include paths to contain platform specific locations. OS variable provided by the platform package is used to determine which OS is being used.

Additional settings for FreeRTOS

Variable 描述 More info
FREERTOS_HEAP_POLICY Select desired heap policy for FreeRTOS Changing heap policies

注意: This is a convenience command. If you want to do the OS setup manually, build and link FreeRTOS to your application and set up the tasks to your needs.

注意: It must be called for executable targets only

范例

# Depend on OS being the default or being set externally.
# If OS is not set "BareMetal" is used by default
app_target_setup_os(example_app)
							
set_target_properties(example_app PROPERTIES
                      FREERTOS_HEAP_POLICY "heap_5")
app_target_setup_os(example_app)
							

Since

This command was introduced in Qt Quick Ultralite 1.1.

另请参阅 FreeRTOS application build process .