xTaskCreatePinnedToCoreWithCaps() function
Creates a pinned task where its stack has specific memory capabilities This function is similar to xTaskCreatePinnedToCore(), except that it allows the memory allocated for the task's stack to have specific capabilities (e.g., MALLOC_CAP_SPIRAM). However, the specified capabilities will NOT apply to the task's TCB as a TCB must always be in internal RAM.
Arguments
pvTaskCode
Pointer to the task entry function
pcName
A descriptive name for the task
usStackDepth
The size of the task stack specified as the number of bytes
pvParameters
Pointer that will be used as the parameter for the task being created.
uxPriority
The priority at which the task should run.
pvCreatedTask
Used to pass back a handle by which the created task can be referenced.
xCoreID
Core to which the task is pinned to, or tskNO_AFFINITY if unpinned.
uxMemoryCaps
Memory capabilities of the task stack's memory (see esp_heap_caps.h)
Return value
pdPASS if the task was successfully created and added to a ready list, otherwise an error code defined in the file projdefs.h
xTaskCreatePinnedToCoreWithCaps() is called by 1 function and calls 5 functions:
![]()
xTaskCreatePinnedToCoreWithCaps()
xTaskCreatePinnedToCoreWithCaps():
![]()
xTaskCreatePinnedToCoreWithCaps()
xTaskCreatePinnedToCoreWithCaps() allocates 1 types and frees 1 types:
![]()
xTaskCreatePinnedToCoreWithCaps()