refactor(ana_cmpr): make analog comparator driver as component

This commit is contained in:
laokaiyao
2023-11-09 16:54:18 +08:00
parent 82a110c7f3
commit bc0201d6f0
34 changed files with 82 additions and 62 deletions
@@ -22,6 +22,9 @@ examples/peripherals/analog_comparator:
- if: IDF_TARGET == "esp32p4"
temporary: true
reason: not supported yet
depends_components:
- esp_driver_gpio
- esp_driver_ana_cmpr
examples/peripherals/dac:
disable:
@@ -5,4 +5,6 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(COMPONENTS main)
project(analog_comparator_example)
@@ -7,4 +7,5 @@ else()
endif()
idf_component_register(SRCS ${src}
PRIV_REQUIRES esp_driver_ana_cmpr esp_driver_gpio
INCLUDE_DIRS ".")