FastLED 3.10.6
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 1788 of file FastLED.h.

1788 {
1789 _setWaitSpinBudgetUs(budget_us);
1790 }
static void _setWaitSpinBudgetUs(fl::u32 budget_us) FL_NO_EXCEPT

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

Referenced by setWaitSpinBudgetUs().

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