embassy icon indicating copy to clipboard operation
embassy copied to clipboard

Added STM32 ADCv1 analog watchdog implementation

Open innermatrix opened this issue 6 months ago • 0 comments

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:

  1. Configure which pins to monitor and what thresholds to apply using adc.init_watchdog(pins, low_threshold, high_threshold)
  2. Wait for the watchdog to trip using adc.monitor_watchdog().await

innermatrix avatar Jun 22 '25 04:06 innermatrix