FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setWaitSpinBudgetUs()

void CFastLED::setWaitSpinBudgetUs ( fl::u32 budget_us)
inline

Override the channel-manager tiered-wait spin budget (microseconds).

waitForReady() and per-driver waitForCondition() use a tiered wait: instant check -> bounded microsecond spin -> cooperator yield. This setter changes the Tier-2 spin budget at runtime. Default is FASTLED_WAIT_SPIN_BUDGET_US (250 us).

Pass 0 to disable the spin tier entirely (always fall through to the cooperator yield - restores pre-#2818 behavior).

Higher values catch larger DMA tails inside the spin without paying the FreeRTOS >=1 ms tick floor, at the cost of busy-spinning the LED-pinned core. See #2815 for design rationale.

Definition at line 1545 of file FastLED.h.

1545 {
1546 _setWaitSpinBudgetUs(budget_us);
1547 }
static void _setWaitSpinBudgetUs(fl::u32 budget_us) FL_NOEXCEPT

References _setWaitSpinBudgetUs(), FL_NOEXCEPT, and setWaitSpinBudgetUs().

Referenced by setWaitSpinBudgetUs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: