mwdg-ffi
C FFI bindings for the mwdg micro-watchdog library.
This crate provides C-compatible bindings for the mwdg library, enabling the use of the multi-watchdog system in C/C++ embedded projects.
Overview
The library allows C applications to register software watchdogs, track liveness, and detect timeouts centrally. It requires the user to provide platform-specific callbacks for time tracking and critical section management.
Integration
Include the generated include/mwdg.h header in your C code.
Build static library
To use in C/C++ projects, you need to build the static library:
# Build for target (e.g., ARMv7-M FP)
The target/<target-triple>/release directory will contain libmwdg_ffi.a. You can link this file along with the header mwdg.h (generated in the build process under the OUT_DIR directory) in your C/C++ project.