tskNO_AFFINITY still missing in 5.2+...

This commit is contained in:
ivmarkov 2024-01-18 17:19:40 +00:00
parent 6ed6765e54
commit eefb213469

View File

@ -17,6 +17,18 @@ use esp_idf_sys::*;
use crate::cpu::Core;
use crate::interrupt;
#[cfg(not(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1"
)))]
const NO_AFFINITY: core::ffi::c_int = CONFIG_FREERTOS_NO_AFFINITY as _;
#[cfg(any(
esp_idf_version_major = "4",
esp_idf_version = "5.0",
esp_idf_version = "5.1"
))]
const NO_AFFINITY: core::ffi::c_uint = tskNO_AFFINITY;
/// Creates a FreeRTOS task.