tskNO_AFFINITY should be defined everywhere now

This commit is contained in:
ivmarkov 2024-01-18 15:06:24 +00:00
parent 97a4dac537
commit 6ed6765e54

View File

@ -17,18 +17,6 @@ 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 = -1;
#[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.