small fix for cherrypick

This commit is contained in:
Armando 2021-01-14 14:46:04 +08:00 committed by bot
parent b38f4646de
commit d35173c147
2 changed files with 9 additions and 0 deletions

View File

@ -280,9 +280,11 @@ void set_xpd_sar(bool en)
}
s_wifi_adc_xpd_flag = en;
#if !CONFIG_IDF_TARGET_ESP32C3
if (en) {
adc_power_acquire();
} else {
adc_power_release();
}
#endif
}

View File

@ -39,6 +39,13 @@ extern "C" {
#define GDMA_LL_EVENT_RX_SUC_EOF (1<<1)
#define GDMA_LL_EVENT_RX_DONE (1<<0)
#define GDMA_LL_TRIG_SRC_SPI2 (0)
#define GDMA_LL_TRIG_SRC_UART (2)
#define GDMA_LL_TRIG_SRC_I2S0 (3)
#define GDMA_LL_TRIG_SRC_AES (6)
#define GDMA_LL_TRIG_SRC_SHA (7)
#define GDMA_LL_TRIG_SRC_ADC_DAC (8)
///////////////////////////////////// Common /////////////////////////////////////////
/**
* @brief Enable DMA channel M2M mode (TX channel n forward data to RX channel n), disabled by default