18#ifndef MBED_WATCHDOG_H
19#define MBED_WATCHDOG_H
23#include "platform/mbed_error.h"
24#include "platform/mbed_assert.h"
25#include "platform/mbed_critical.h"
26#include "hal/watchdog_api.h"
27#include "platform/NonCopyable.h"
118 bool start(std::chrono::milliseconds timeout)
120 return start(timeout.count());
Prevents generation of copy constructor and copy assignment operator in derived classes.
A hardware watchdog timer that resets the system in the case of system failures or malfunctions.
bool start(uint32_t timeout)
Start the Watchdog timer.
bool is_running() const
Check if the Watchdog timer is already running.
uint32_t get_max_timeout() const
Get the maximum Watchdog refresh value for this platform.
bool stop()
Stop the Watchdog timer.
void kick()
Refresh the Watchdog timer.
static Watchdog & get_instance()
Get a reference to the single Watchdog instance in the system.
bool start()
Start the Watchdog timer with the maximum timeout value available for the target.
uint32_t get_timeout() const
Get the Watchdog timer refresh value.
bool start(std::chrono::milliseconds timeout)
Start the Watchdog timer.