1 // Copyright 2020 Espressif Systems (Shanghai) PTE LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #pragma once 16 17 #define SOC_ADC1_DATA_INVERT_DEFAULT (1) 18 #define SOC_ADC2_DATA_INVERT_DEFAULT (1) 19 20 #define SOC_ADC_DIGI_DATA_INVERT_DEFAULT(PERIPH_NUM) (1) 21 22 #define SOC_ADC_FSM_RSTB_WAIT_DEFAULT (8) 23 #define SOC_ADC_FSM_START_WAIT_DEFAULT (SOC_ADC_DIGI_SAR_CLK_DIV_DEFAULT) 24 #define SOC_ADC_FSM_STANDBY_WAIT_DEFAULT (100) 25 #define ADC_FSM_SAMPLE_CYCLE_DEFAULT (2) 26 27 #define SOC_ADC_PWDET_CCT_DEFAULT (4) 28 29 #define SOC_ADC_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) (2) 30 31 #define SOC_ADC_DIGI_SAR_CLK_DIV_DEFAULT (16) 32