File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 27
27
#include "soc/rtc_io_reg.h"
28
28
#include "esp32/rom/ets_sys.h"
29
29
#include "esp_intr_alloc.h"
30
- #include "soc/dac_channel.h"
31
30
#define DEFAULT_VREF 1100
32
31
static esp_adc_cal_characteristics_t * __analogCharacteristics [2 ] = {NULL , NULL };
33
32
static uint16_t __analogVRef = 0 ;
@@ -39,8 +38,7 @@ static uint8_t __analogVRefPin = 0;
39
38
#elif CONFIG_IDF_TARGET_ESP32S3
40
39
#include "esp32s3/rom/ets_sys.h"
41
40
#include "soc/sens_reg.h"
42
- #include "soc/rtc_io_reg.h
43
- #include "soc/dac_channel.h"
41
+ #include "soc/rtc_io_reg.h"
44
42
#elif CONFIG_IDF_TARGET_ESP32C3
45
43
#include "esp32c3/rom/ets_sys.h"
46
44
#else
@@ -148,9 +146,9 @@ bool __adcAttachPin(uint8_t pin){
148
146
#endif
149
147
}
150
148
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
151
- else if (pin == DAC_CHANNEL_1_GPIO_NUM ){
149
+ else if (pin == 25 ){
152
150
CLEAR_PERI_REG_MASK (RTC_IO_PAD_DAC1_REG , RTC_IO_PDAC1_XPD_DAC | RTC_IO_PDAC1_DAC_XPD_FORCE );//stop dac1
153
- } else if (pin == DAC_CHANNEL_2_GPIO_NUM ){
151
+ } else if (pin == 26 ){
154
152
CLEAR_PERI_REG_MASK (RTC_IO_PAD_DAC2_REG , RTC_IO_PDAC2_XPD_DAC | RTC_IO_PDAC2_DAC_XPD_FORCE );//stop dac2
155
153
}
156
154
#endif
You can’t perform that action at this time.
0 commit comments