LwWDG is a lightweight watchdog library, primarily targeting operating systems, to watch multiple threads and reset system if one of them fails.
- Written in C (C11), compatible with
stdint.hdata types - Supervises multiple independent watchdogs, each with its own timeout, tracked in a linked list
- Watchdogs can be added or removed at runtime with
lwwdg_addandlwwdg_remove - Single
lwwdg_processcall checks all registered watchdogs to decide whether the hardware watchdog can be kicked - Optional named watchdogs with a debug callback fired once when a watchdog expires
- Function to enumerate all watchdogs currently in an expired state
- Configurable, platform-agnostic critical section macros for thread- and ISR-safe access
- Easy to use - very little platform dependency
- Written with operating systems in mind
Fresh contributions are always welcome. Simple instructions to proceed:
- Fork Github repository
- Follow C style & coding rules and use
clang-formatto format the code - Create a pull request to
developbranch with new features or bug fixes
Alternatively you may:
- Report a bug
- Ask for a feature request