HardFOC Flux V1 HAL
Unified HAL API for the HardFOC Flux valve-control platform (ESP32-S3)
Loading...
Searching...
No Matches
Namespaces | Variables
FluxCpuAffinity.h File Reference

Logical CPU indices for FreeRTOS task affinity on the Flux board. More...

Go to the source code of this file.

Namespaces

namespace  flux_hal
 

Variables

constexpr int flux_hal::kFluxCpuNoAffinity = -1
 No CPU affinity (tskNO_AFFINITY / scheduler chooses).
 
constexpr int flux_hal::kFluxCpuHostIo = 0
 
constexpr int flux_hal::kFluxCpuRealtime = 1
 Logical core for high-rate real-time loops (pressure, manifold, safety).
 

Detailed Description

Logical CPU indices for FreeRTOS task affinity on the Flux board.

Application and middleware pass these integers to BaseThread / os_thread_create_pinned (via hf-core OsAbstraction). They are HAL board integration policy for the current target, not portable silicon constants: the mapping from logical index to vendor core names is documented in the Flux V1 board / integration handbook (e.g. on dual-core ESP32-S3, kFluxCpuHostIo is core 0 and kFluxCpuRealtime is core 1, consistent with Espressif IDF “PRO_CPU” / “APP_CPU” terminology).

On single-core builds, the RTOS wrapper ignores affinity; passing any value here remains safe.