mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-27 12:21:02 +00:00
tskNO_AFFINITY still missing in 5.2+...
This commit is contained in:
parent
6ed6765e54
commit
eefb213469
12
src/task.rs
12
src/task.rs
@ -17,6 +17,18 @@ use esp_idf_sys::*;
|
|||||||
use crate::cpu::Core;
|
use crate::cpu::Core;
|
||||||
use crate::interrupt;
|
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;
|
const NO_AFFINITY: core::ffi::c_uint = tskNO_AFFINITY;
|
||||||
|
|
||||||
/// Creates a FreeRTOS task.
|
/// Creates a FreeRTOS task.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user