#include #include using namespace ther; namespace { WatchDogConfig wdt; } // namespace static auto Init() -> int { printk("[watchdog] init\n"); using namespace std::chrono_literals; static zpp::periodic_work<> work{[]() { wdt.Feed(); }}; work.submit(50ms); return 0; } SYS_INIT(Init, POST_KERNEL, 50);