Skip to content

Class LibreTinyWDT

ClassList > LibreTinyWDT

Watchdog control class. More...

  • #include <WDT.h>

Public Functions

Type Name
void disable ()
Disable the hardware watchdog.
bool enable (uint32_t timeout=10000)
Enable the hardware watchdog.
void feed ()
Feed/reset the hardware watchdog timer.

Detailed Description

This class only consists of inline functions, which wrap the LibreTiny C API (lt_api.h). Refer to the docs of the C API for more information.

The class is accessible using the WDT global object.

Public Functions Documentation

function disable

inline void LibreTinyWDT::disable () 

function enable

Enable the hardware watchdog.

inline bool LibreTinyWDT::enable (
    uint32_t timeout=10000


  • timeout watchdog timeout, milliseconds


whether the chip has a hardware watchdog

function feed

inline void LibreTinyWDT::feed () 

The documentation for this class was generated from the following file cores/common/arduino/libraries/inline/WDT/WDT.h