feat(ana_cmpr): add ETM periodic scan example

This commit is contained in:
morris
2026-04-25 11:57:43 +08:00
parent 47863cb651
commit 65f4707d2b
12 changed files with 391 additions and 2 deletions

View File

@@ -222,7 +222,10 @@ Kconfig Options
Application Example
-------------------
* :example:`peripherals/analog_comparator` shows the basic usage of the analog comparator, and other potential usages like hysteresis comparator and SPWM generator.
.. list::
:SOC_ANA_CMPR_SUPPORT_AUTO_SCAN: - :example:`peripherals/analog_comparator/auto_scan` shows auto scan based threshold detection with internal or external reference. After enabling the comparator, hardware scans continuously and updates output in real time, while the example demonstrates interrupt-based or ETM-based monitor GPIO control depending on target capabilities.
:SOC_ANA_CMPR_SUPPORT_ETM_SCAN: - :example:`peripherals/analog_comparator/etm_periodic_scan` shows how to use GPTimer and ETM to trigger periodic comparator scans and drive a monitor GPIO from comparator crossing events.
API Reference
-------------