We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
bebfd1e
Quick example of watchdog using Ticker based on mbed api example
#include "mbed.h" Ticker kicker; void watchdogKick() { Watchdog::get_instance().kick(); } int main() { printf("\n\nDemonstration of watchdog in case of error (happens in 10s).\n"); const uint32_t TIMEOUT_MS = 5000; Watchdog &watchdog = Watchdog::get_instance(); watchdog.start(TIMEOUT_MS); kicker.attach_us(watchdogKick, 1000); ThisThread::sleep_for(10s); error("This is a reason why watchdog exists. Restarting in 5000ms...\n"); return 0; }
Sorry, something went wrong.
ladislas
No branches or pull requests
The text was updated successfully, but these errors were encountered: