|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <scheduler.h>
Static Public Member Functions | |
| static LoopSchedule | plan (const SleepEligibility &eligibility, bool appDirty, bool inputPending, uint32_t earliestDeadlineMs) |
Keep sleep eligibility and active/idle loop pacing in one tested policy.
|
inlinestatic |
Choose a platform wait from product blockers and the earliest deadline. GPIO interrupts wake the task from sleep, so a fully idle wait can use its real service deadline. Awake pending work gets a short poll; quiescent awake work uses a relaxed cadence.