fix(adc): fixed esp32, esp32s2,esp32s3 adc oneshot mode clk div issue

This commit is contained in:
Armando 2023-07-12 17:19:00 +08:00
parent 1f1b10aa26
commit abd0fca51a
6 changed files with 3 additions and 6 deletions

View File

@ -10,7 +10,7 @@
Single Read
---------------------------------------------------------------*/
#define ADC_HAL_DATA_INVERT_DEFAULT(PERIPH_NUM) (1)
#define ADC_HAL_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) (2)
#define ADC_HAL_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) (1)
/*---------------------------------------------------------------
DMA Read

View File

@ -10,7 +10,6 @@
Single Read
---------------------------------------------------------------*/
#define ADC_HAL_DATA_INVERT_DEFAULT(PERIPH_NUM) (0)
#define ADC_HAL_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) ((PERIPH_NUM==0)? 2 : 1)
/*---------------------------------------------------------------
DMA Read

View File

@ -10,7 +10,6 @@
Single Read
---------------------------------------------------------------*/
#define ADC_HAL_DATA_INVERT_DEFAULT(PERIPH_NUM) (0)
#define ADC_HAL_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) ((PERIPH_NUM==0)? 2 : 1)
/*---------------------------------------------------------------
DMA Read

View File

@ -10,7 +10,6 @@
Single Read
---------------------------------------------------------------*/
#define ADC_HAL_DATA_INVERT_DEFAULT(PERIPH_NUM) (0)
#define ADC_HAL_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) ((PERIPH_NUM==0)? 2 : 1)
/*---------------------------------------------------------------
DMA Read

View File

@ -10,7 +10,7 @@
Single Read
---------------------------------------------------------------*/
#define ADC_HAL_DATA_INVERT_DEFAULT(PERIPH_NUM) (0)
#define ADC_HAL_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) ((PERIPH_NUM==0)? 2 : 1)
#define ADC_HAL_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) (1)
/*---------------------------------------------------------------
DMA Read

View File

@ -10,7 +10,7 @@
Single Read
---------------------------------------------------------------*/
#define ADC_HAL_DATA_INVERT_DEFAULT(PERIPH_NUM) (0)
#define ADC_HAL_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) ((PERIPH_NUM==0)? 2 : 1)
#define ADC_HAL_SAR_CLK_DIV_DEFAULT(PERIPH_NUM) (1)
/*---------------------------------------------------------------
DMA Read