Targets#

The following library target aliases can be used in your application CMakeLists.txt. An example of how to add aliases to your target link libraries is shown below:

target_link_libraries(my_app PUBLIC core::general rtos::freertos)

General#

Several aliases are provided that specify a collection of libraries with similar functions. These composite target libraries provide a concise alternative to specifying all the individual targets that are commonly required.

Table 8 Composite Target Libraries#

Target

Description

core::general

Commonly used core libraries

io::general

Commonly used peripheral libraries

io::audio

Commonly used peripheral libraries for audio applications

rtos::freertos

Commonly used RTOS libraries

Core#

If you prefer, you can specify individual core library targets.

Table 9 Core Libraries#

Target

Description

framework_core_clock_control

Clock control API

framework_core_utils

General utilities used by most applications

framework_core_legacy_compat

For compatibility with XC

lib_xcore_math

VPU-optimized math library

Peripherals#

If you prefer, you can specify individual peripheral libraries.

Table 10 Peripheral Libraries#

Target

Description

lib_i2c

I2C library

lib_spi

SPI library

lib_uart

UART library

lib_qspi_io

QSPI library

lib_xud

XUD USB library

lib_i2s

I2S library

lib_mic_array

Microphone Array library

RTOS#

Several aliases are provided that specify a collection of RTOS libraries with similar functions. These composite target libraries provide a concise alternative to specifying all the individual targets that are commonly required.

Table 11 Composite RTOS Libraries#

Target

Description

rtos::freertos

All libraries used my most FreeRTOS applications

rtos::drivers:all

All RTOS Driver libraries

rtos::freertos_usb

All libraries to support development with TinyUSB

rtos::sw_services::general

Most commonly used RTOS software service libraries

rtos::iot

All IoT libraries

rtos::wifi

All WiFi libraries

These board support libraries simplify development with a specific board.

Table 12 Board Support Libraries#

Target

Description

rtos::bsp_config::xcore_ai_explorer

xcore.ai Explorer RTOS board support library

If you prefer, you can specify individual RTOS driver libraries.

Table 13 Individual RTOS Driver Libraries#

Target

Description

rtos::drivers::uart

UART RTOS driver library

rtos::drivers::i2c

I2C RTOS driver library

rtos::drivers::i2s

I2S RTOS driver library

rtos::drivers::spi

SPI RTOS driver library

rtos::drivers::qspi_io

QSPI RTOS driver library

rtos::drivers::mic_array

Microphone Array RTOS driver library

rtos::drivers::usb

USB RTOS driver library

rtos::drivers::dfu_image

RTOS DFU driver library

rtos::drivers::gpio

GPIO RTOS driver library

rtos::drivers::l2_cache

L2 Cache RTOS driver library

rtos::drivers::clock_control

Clock control RTOS driver library

rtos::drivers::trace

Trace RTOS driver library

rtos::drivers::swmem

SwMem RTOS driver library

rtos::drivers::wifi

WiFi RTOS driver library

rtos::drivers::intertile

Intertile RTOS driver library

rtos::drivers::rpc

Remote procedure call RTOS driver library

If you prefer, you can specify individual software service libraries.

Table 14 Individual Software Service Libraries#

Target

Description

rtos::sw_services::fatfs

FatFS library

rtos::sw_services::usb

USB library

rtos::sw_services::device_control

Device control library

rtos::sw_services::usb_device_control

USB device control library

rtos::sw_services::wifi_manager

WiFi manager library

rtos::sw_services::tls_support

TLS library

rtos::sw_services::dhcp

DHCP library

rtos::sw_services::json

JSON library

rtos::sw_services::http

HTTP library

rtos::sw_services::sntpd

SNTP daemon library

rtos::sw_services::mqtt

MQTT library

The following libraries for building host applications are also provided by the SDK.

Table 15 Host (x86) Libraries#

Target

Description

rtos::sw_services::device_control_host_usb

Host USB device control library