feat(ana_cmpr): support analog comparator on C61

This commit is contained in:
laokaiyao
2024-12-06 15:35:18 +08:00
parent 7993018962
commit 0cae6d526c
15 changed files with 308 additions and 30 deletions

View File

@@ -3,8 +3,8 @@ Analog Comparator
:link_to_translation:`zh_CN:[中文]`
{IDF_TARGET_ANA_CMPR_SRC_CHAN0: default="NOT UPDATED", esp32h2="GPIO11", esp32p4="GPIO52"}
{IDF_TARGET_ANA_CMPR_EXT_REF_CHAN0: default="NOT UPDATED", esp32h2="GPIO10", esp32p4="GPIO51"}
{IDF_TARGET_ANA_CMPR_SRC_CHAN0: default="NOT UPDATED", esp32h2="GPIO11", esp32p4="GPIO52", esp32c61="GPIO9"}
{IDF_TARGET_ANA_CMPR_EXT_REF_CHAN0: default="NOT UPDATED", esp32h2="GPIO10", esp32p4="GPIO51", esp32c61="GPIO8"}
{IDF_TARGET_ANA_CMPR_SRC_CHAN1: default="NOT UPDATED", esp32p4="GPIO54"}
{IDF_TARGET_ANA_CMPR_EXT_REF_CHAN1: default="NOT UPDATED", esp32p4="GPIO53"}
@@ -36,17 +36,16 @@ Functional Overview
The following sections of this document cover the typical steps to install and operate an analog comparator unit:
- :ref:`anacmpr-resource-allocation` - covers which parameters should be set up to get a unit handle and how to recycle the resources when it finishes working.
- :ref:`anacmpr-further-configurations` - covers the other configurations that might need to specify and what they are used for.
- :ref:`anacmpr-enable-and-disable-unit` - covers how to enable and disable the unit.
- :ref:`anacmpr-power-management` - describes how different source clock selections can affect power consumption.
- :ref:`anacmpr-iram-safe` - lists which functions are supposed to work even when the cache is disabled.
- :ref:`anacmpr-thread-safety` - lists which APIs are guaranteed to be thread safe by the driver.
- :ref:`anacmpr-kconfig-options` - lists the supported Kconfig options that can be used to make a different effect on driver behavior.
.. list::
.. only:: SOC_ANA_CMPR_SUPPORT_ETM
- :ref:`anacmpr-etm-events` - covers how to create an analog comparator cross event.
- :ref:`anacmpr-resource-allocation` - covers which parameters should be set up to get a unit handle and how to recycle the resources when it finishes working.
- :ref:`anacmpr-further-configurations` - covers the other configurations that might need to specify and what they are used for.
- :ref:`anacmpr-enable-and-disable-unit` - covers how to enable and disable the unit.
- :ref:`anacmpr-power-management` - describes how different source clock selections can affect power consumption.
- :ref:`anacmpr-iram-safe` - lists which functions are supposed to work even when the cache is disabled.
- :ref:`anacmpr-thread-safety` - lists which APIs are guaranteed to be thread safe by the driver.
- :ref:`anacmpr-kconfig-options` - lists the supported Kconfig options that can be used to make a different effect on driver behavior.
:SOC_ANA_CMPR_SUPPORT_ETM: - :ref:`anacmpr-etm-events` - covers how to create an analog comparator cross event.
.. _anacmpr-resource-allocation: