Skip to content

File WDT.h

File List > arduino > libraries > inline > WDT > WDT.h

Go to the documentation of this file.

/* Copyright (c) Kuba Szczodrzyński 2023-03-10. */

#pragma once

#include <Arduino.h>

#ifdef __cplusplus

class LibreTinyWDT {
  public: /* lt_wdt.h */
    inline bool enable(uint32_t timeout = 10000) { return lt_wdt_enable(timeout); }

    inline void disable() { lt_wdt_disable(); }

    inline void feed() { lt_wdt_feed(); }
};

extern LibreTinyWDT WDT;

#endif