driver(adc): add adc initial code before app_main for esp32s2.

update phy v301
This commit is contained in:
fuzhibo
2020-04-02 11:20:38 +08:00
parent a7c2e86f87
commit 406b8f423d
14 changed files with 65 additions and 31 deletions

View File

@@ -31,10 +31,6 @@ typedef enum {
ADC_RTC_DATA_FAIL = -1,
} adc_ll_rtc_raw_data_t;
#ifdef _MSC_VER
#pragma pack(push, 1)
#endif /* _MSC_VER */
/**
* @brief Analyze whether the obtained raw data is correct.
* ADC2 use arbiter by default. The arbitration result can be judged by the flag bit in the original data.
@@ -53,10 +49,6 @@ typedef struct {
};
} adc_rtc_output_data_t;
#ifdef _MSC_VER
#pragma pack(pop)
#endif /* _MSC_VER */
/**
* @brief ADC controller type selection.
*
@@ -1165,9 +1157,6 @@ static inline void adc_ll_disable_sleep_controller(void)
#define SAR2_DREF_ADDR_MSB 0x6
#define SAR2_DREF_ADDR_LSB 0x4
#define ADC_HAL_CAL_OFFSET_RANGE (4096)
#define ADC_HAL_CAL_TIMES (10)
/**
* Configure the registers for ADC calibration. You need to call the ``adc_ll_calibration_finish`` interface to resume after calibration.
*