mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-30 22:01:23 +00:00
tskNO_AFFINITY should be defined everywhere now
This commit is contained in:
parent
97a4dac537
commit
6ed6765e54
12
src/task.rs
12
src/task.rs
@ -17,18 +17,6 @@ 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 = -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;
|
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