Ver Fonte

esp_adc: remove esp_adc from g1 component dependencies

Armando há 3 anos atrás
pai
commit
4f80c0f27e

+ 1 - 1
components/driver/CMakeLists.txt

@@ -121,7 +121,7 @@ else()
     idf_component_register(SRCS "${srcs}"
                         INCLUDE_DIRS ${includes}
                         PRIV_INCLUDE_DIRS "include/driver"
-                        PRIV_REQUIRES efuse esp_timer esp_adc
+                        PRIV_REQUIRES efuse esp_timer
                         REQUIRES esp_pm esp_ringbuf freertos soc hal esp_hw_support
                         LDFRAGMENTS linker.lf)
 endif()

+ 0 - 1
components/driver/deprecated/adc_dma_legacy.c

@@ -19,7 +19,6 @@
 #include "freertos/timers.h"
 #include "freertos/ringbuf.h"
 #include "esp_private/periph_ctrl.h"
-#include "esp_private/adc_private.h"
 #include "esp_private/adc_share_hw_ctrl.h"
 #include "hal/adc_types.h"
 #include "hal/adc_hal.h"

+ 0 - 1
components/driver/deprecated/adc_i2s_deprecated.c

@@ -20,7 +20,6 @@
 #ifdef CONFIG_PM_ENABLE
 #include "esp_pm.h"
 #endif
-#include "esp_private/adc_private.h"
 #include "freertos/FreeRTOS.h"
 
 #include "driver/adc_i2s_legacy.h"

+ 0 - 1
components/driver/deprecated/adc_legacy.c

@@ -18,7 +18,6 @@
 #include "driver/rtc_io.h"
 #include "sys/lock.h"
 #include "driver/gpio.h"
-#include "esp_private/adc_private.h"
 #include "esp_private/adc_share_hw_ctrl.h"
 #include "adc1_private.h"
 #include "hal/adc_types.h"

+ 0 - 3
tools/test_apps/system/g1_components/CMakeLists.txt

@@ -40,9 +40,6 @@ set(extra_components_which_shouldnt_be_included
     #   Figure out if these components can exist without a dependency on efuse.
     #   If not, see if esp_hw_support can provide minimal efuse component replacement in G1 build.
     efuse
-    # [refactor-todo]: esp_adc is a dependency of driver.
-    #   Driver dependency only exists in legacy drivers. After removing deprecated drivers, this dependency can be fixed
-    esp_adc
     # esp_pm is pulled in by freertos, can be made a weak dependency
     #   conditional on related Kconfig option. It is also used by esp_wifi, driver, mbedtls,
     #   all of which should be removed from G1-only build.