esp_adc: remove esp_adc from g1 component dependencies

This commit is contained in:
Armando 2022-07-21 15:25:33 +08:00 committed by Armando (Dou Yiwen)
parent 5e6a16380a
commit 4f80c0f27e
5 changed files with 1 additions and 7 deletions

View File

@ -121,7 +121,7 @@ else()
idf_component_register(SRCS "${srcs}" idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS ${includes} INCLUDE_DIRS ${includes}
PRIV_INCLUDE_DIRS "include/driver" 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 REQUIRES esp_pm esp_ringbuf freertos soc hal esp_hw_support
LDFRAGMENTS linker.lf) LDFRAGMENTS linker.lf)
endif() endif()

View File

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

View File

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

View File

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

View File

@ -40,9 +40,6 @@ set(extra_components_which_shouldnt_be_included
# Figure out if these components can exist without a dependency on efuse. # 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. # If not, see if esp_hw_support can provide minimal efuse component replacement in G1 build.
efuse 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 # 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, # conditional on related Kconfig option. It is also used by esp_wifi, driver, mbedtls,
# all of which should be removed from G1-only build. # all of which should be removed from G1-only build.