embassy/embassy-stm32
Patrick Oppenlander 4c089134ef stm32: add WindowWatchdog timer
WindowWatchdog configures a timer channel to capture both edges of an
input and compare the time between edges to a duration range. In other
words, it expects a ~50% duty cycle square wave on its input.

One possible use for this is to monitor whether another device is
functional.

If VALID_THRESHOLD (currently 2) edge intervals are within range, ok()
returns true, otherwise, if an edge is outside of the valid range ok()
returns false.

state_change() runs the calling task whenever the ok() state changes.
2023-03-02 14:12:39 +11:00
..
src stm32: add WindowWatchdog timer 2023-03-02 14:12:39 +11:00
build.rs Update stm32-data. 2023-01-11 17:51:30 +01:00
Cargo.toml stm32: doc all chips. 2023-02-13 03:02:12 +01:00