embassy
embassy copied to clipboard
Added STM32 ADCv1 analog watchdog implementation
There is currently no implementation of the analog watchdog (AWD) for any STM32 ADCs in embassy. This adds AWD support to v1 ADCs. The examples should speak for themselves. The tldr is:
- Configure which pins to monitor and what thresholds to apply using
adc.init_watchdog(pins, low_threshold, high_threshold) - Wait for the watchdog to trip using
adc.monitor_watchdog().await