FastLED 3.10.8
Loading...
Searching...
No Matches
boot_guard.h
Go to the documentation of this file.
1#pragma once
2
44
46#include "fl/wdt/boot_guard_record.h" // IWYU pragma: export
47// The platform header defines FL_WATCHDOG_BOOT_GUARD_IMPL when it supports
48// the early-boot guard.
49#include "platforms/watchdog_boot_guard.h" // IWYU pragma: export
50
51#ifdef FL_WATCHDOG_BOOT_GUARD_IMPL
54#define FL_WATCHDOG_BOOT_GUARD(escape_boots, early_timeout_ms) \
55 FL_WATCHDOG_BOOT_GUARD_IMPL(escape_boots, early_timeout_ms)
56#else
57// No early-boot hook here: generate no code, only check the arguments.
58#define FL_WATCHDOG_BOOT_GUARD(escape_boots, early_timeout_ms) \
59 FL_STATIC_ASSERT((escape_boots) >= 0 && (early_timeout_ms) >= 0, "")
60#endif
Platform-neutral record format and policy for the early-boot loop guard (see fl/wdt/boot_guard....
Portable compile-time assertion wrapper.