mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-06 14:14:33 +02:00
adc: add ADC target test for esp32c6
This commit is contained in:
@@ -1754,6 +1754,19 @@
|
|||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-component_ut
|
changes: *patterns-component_ut
|
||||||
|
|
||||||
|
.rules:test:component_ut-esp32c6-adc:
|
||||||
|
rules:
|
||||||
|
- <<: *if-revert-branch
|
||||||
|
when: never
|
||||||
|
- <<: *if-protected
|
||||||
|
- <<: *if-label-build-only
|
||||||
|
when: never
|
||||||
|
- <<: *if-label-component_ut
|
||||||
|
- <<: *if-label-component_ut_esp32c6
|
||||||
|
- <<: *if-label-target_test
|
||||||
|
- <<: *if-dev-push
|
||||||
|
changes: *patterns-target_test-adc
|
||||||
|
|
||||||
.rules:test:component_ut-esp32h4-i154:
|
.rules:test:component_ut-esp32h4-i154:
|
||||||
rules:
|
rules:
|
||||||
- <<: *if-revert-branch
|
- <<: *if-revert-branch
|
||||||
@@ -2072,6 +2085,19 @@
|
|||||||
- <<: *if-dev-push
|
- <<: *if-dev-push
|
||||||
changes: *patterns-example_test
|
changes: *patterns-example_test
|
||||||
|
|
||||||
|
.rules:test:example_test-esp32c6-adc:
|
||||||
|
rules:
|
||||||
|
- <<: *if-revert-branch
|
||||||
|
when: never
|
||||||
|
- <<: *if-protected
|
||||||
|
- <<: *if-label-build-only
|
||||||
|
when: never
|
||||||
|
- <<: *if-label-example_test
|
||||||
|
- <<: *if-label-example_test_esp32c6
|
||||||
|
- <<: *if-label-target_test
|
||||||
|
- <<: *if-dev-push
|
||||||
|
changes: *patterns-target_test-adc
|
||||||
|
|
||||||
.rules:test:example_test-esp32s2:
|
.rules:test:example_test-esp32s2:
|
||||||
rules:
|
rules:
|
||||||
- <<: *if-revert-branch
|
- <<: *if-revert-branch
|
||||||
|
@@ -336,6 +336,14 @@ example_test_pytest_esp32c2_adc:
|
|||||||
- build_pytest_examples_esp32c2
|
- build_pytest_examples_esp32c2
|
||||||
tags: [ esp32c2, adc, xtal_26mhz]
|
tags: [ esp32c2, adc, xtal_26mhz]
|
||||||
|
|
||||||
|
example_test_pytest_esp32c6_adc:
|
||||||
|
extends:
|
||||||
|
- .pytest_examples_dir_template
|
||||||
|
- .rules:test:example_test-esp32c6-adc
|
||||||
|
needs:
|
||||||
|
- build_pytest_examples_esp32c6
|
||||||
|
tags: [ esp32c6, adc ]
|
||||||
|
|
||||||
.pytest_components_dir_template:
|
.pytest_components_dir_template:
|
||||||
extends: .pytest_template
|
extends: .pytest_template
|
||||||
variables:
|
variables:
|
||||||
@@ -673,6 +681,14 @@ component_ut_pytest_esp32c6_generic_multi_device:
|
|||||||
- build_pytest_components_esp32c6
|
- build_pytest_components_esp32c6
|
||||||
tags: [ esp32c6, generic_multi_device ]
|
tags: [ esp32c6, generic_multi_device ]
|
||||||
|
|
||||||
|
component_ut_pytest_esp32c6_adc:
|
||||||
|
extends:
|
||||||
|
- .pytest_components_dir_template
|
||||||
|
- .rules:test:component_ut-esp32c6-adc
|
||||||
|
needs:
|
||||||
|
- build_pytest_components_esp32c6
|
||||||
|
tags: [ esp32c6, adc ]
|
||||||
|
|
||||||
component_ut_pytest_esp32h4_i154:
|
component_ut_pytest_esp32h4_i154:
|
||||||
extends:
|
extends:
|
||||||
- .pytest_components_dir_template
|
- .pytest_components_dir_template
|
||||||
|
@@ -133,8 +133,6 @@ typedef enum {
|
|||||||
/**
|
/**
|
||||||
* @brief ADC digital controller (DMA mode) monitor configuration.
|
* @brief ADC digital controller (DMA mode) monitor configuration.
|
||||||
*
|
*
|
||||||
* @note For ESP32-S2, The monitor object of the ADC is fixed.
|
|
||||||
* @note For ESP32-S2, The monitor object is always all enabled channels.
|
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
adc_unit_t adc_unit; /*!<Set adc unit number for monitor.
|
adc_unit_t adc_unit; /*!<Set adc unit number for monitor.
|
||||||
@@ -142,12 +140,8 @@ typedef struct {
|
|||||||
adc_channel_t channel; /*!<Set adc channel number for monitor.
|
adc_channel_t channel; /*!<Set adc channel number for monitor.
|
||||||
For ESP32-S2, it's always `ADC_CHANNEL_MAX` */
|
For ESP32-S2, it's always `ADC_CHANNEL_MAX` */
|
||||||
adc_digi_monitor_mode_t mode; /*!<Set adc monitor mode. See ``adc_digi_monitor_mode_t``. */
|
adc_digi_monitor_mode_t mode; /*!<Set adc monitor mode. See ``adc_digi_monitor_mode_t``. */
|
||||||
#if SOC_ADC_DIGI_SEGMENTED_THRESH
|
uint32_t h_threshold; /*!<Set monitor threshold of adc digital controller. */
|
||||||
uint32_t h_threshold; /*!<Set monitor threshold of adc digital controller. */
|
uint32_t l_threshold; /*!<Set monitor threshold of adc digital controller. */
|
||||||
uint32_t l_threshold; /*!<Set monitor threshold of adc digital controller. */
|
|
||||||
#else
|
|
||||||
uint32_t threshold; /*!<Set monitor threshold of adc digital controller. */
|
|
||||||
#endif
|
|
||||||
} adc_digi_monitor_t;
|
} adc_digi_monitor_t;
|
||||||
#endif //#if SOC_ADC_MONITOR_SUPPORTED
|
#endif //#if SOC_ADC_MONITOR_SUPPORTED
|
||||||
|
|
||||||
|
@@ -103,10 +103,6 @@ config SOC_ADC_ATTEN_NUM
|
|||||||
int
|
int
|
||||||
default 4
|
default 4
|
||||||
|
|
||||||
config SOC_ADC_DIGI_SEGMENTED_THRESH
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config SOC_ADC_DIGI_CONTROLLER_NUM
|
config SOC_ADC_DIGI_CONTROLLER_NUM
|
||||||
int
|
int
|
||||||
default 1
|
default 1
|
||||||
|
@@ -59,7 +59,6 @@
|
|||||||
#define SOC_ADC_ATTEN_NUM (4)
|
#define SOC_ADC_ATTEN_NUM (4)
|
||||||
|
|
||||||
/*!< Digital */
|
/*!< Digital */
|
||||||
#define SOC_ADC_DIGI_SEGMENTED_THRESH 1
|
|
||||||
#define SOC_ADC_DIGI_CONTROLLER_NUM (1U)
|
#define SOC_ADC_DIGI_CONTROLLER_NUM (1U)
|
||||||
#define SOC_ADC_PATT_LEN_MAX (8) /*!< One pattern table, each contains 8 items. Each item takes 1 byte */
|
#define SOC_ADC_PATT_LEN_MAX (8) /*!< One pattern table, each contains 8 items. Each item takes 1 byte */
|
||||||
#define SOC_ADC_DIGI_MIN_BITWIDTH (12)
|
#define SOC_ADC_DIGI_MIN_BITWIDTH (12)
|
||||||
|
@@ -175,10 +175,6 @@ config SOC_ADC_ATTEN_NUM
|
|||||||
int
|
int
|
||||||
default 4
|
default 4
|
||||||
|
|
||||||
config SOC_ADC_DIGI_SEGMENTED_THRESH
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config SOC_ADC_DIGI_CONTROLLER_NUM
|
config SOC_ADC_DIGI_CONTROLLER_NUM
|
||||||
int
|
int
|
||||||
default 1
|
default 1
|
||||||
|
@@ -85,7 +85,6 @@
|
|||||||
#define SOC_ADC_ATTEN_NUM (4)
|
#define SOC_ADC_ATTEN_NUM (4)
|
||||||
|
|
||||||
/*!< Digital */
|
/*!< Digital */
|
||||||
#define SOC_ADC_DIGI_SEGMENTED_THRESH 1
|
|
||||||
#define SOC_ADC_DIGI_CONTROLLER_NUM (1U)
|
#define SOC_ADC_DIGI_CONTROLLER_NUM (1U)
|
||||||
#define SOC_ADC_PATT_LEN_MAX (8) /*!< One pattern table, each contains 8 items. Each item takes 1 byte */
|
#define SOC_ADC_PATT_LEN_MAX (8) /*!< One pattern table, each contains 8 items. Each item takes 1 byte */
|
||||||
#define SOC_ADC_DIGI_MIN_BITWIDTH (12)
|
#define SOC_ADC_DIGI_MIN_BITWIDTH (12)
|
||||||
|
@@ -155,10 +155,6 @@ config SOC_ADC_ATTEN_NUM
|
|||||||
int
|
int
|
||||||
default 4
|
default 4
|
||||||
|
|
||||||
config SOC_ADC_DIGI_SEGMENTED_THRESH
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config SOC_ADC_DIGI_CONTROLLER_NUM
|
config SOC_ADC_DIGI_CONTROLLER_NUM
|
||||||
int
|
int
|
||||||
default 1
|
default 1
|
||||||
|
@@ -85,7 +85,6 @@
|
|||||||
#define SOC_ADC_ATTEN_NUM (4)
|
#define SOC_ADC_ATTEN_NUM (4)
|
||||||
|
|
||||||
/*!< Digital */
|
/*!< Digital */
|
||||||
#define SOC_ADC_DIGI_SEGMENTED_THRESH 1
|
|
||||||
#define SOC_ADC_DIGI_CONTROLLER_NUM (1U)
|
#define SOC_ADC_DIGI_CONTROLLER_NUM (1U)
|
||||||
#define SOC_ADC_PATT_LEN_MAX (8) /*!< Two pattern tables, each contains 4 items. Each item takes 1 byte */
|
#define SOC_ADC_PATT_LEN_MAX (8) /*!< Two pattern tables, each contains 4 items. Each item takes 1 byte */
|
||||||
#define SOC_ADC_DIGI_MAX_BITWIDTH (12)
|
#define SOC_ADC_DIGI_MAX_BITWIDTH (12)
|
||||||
|
@@ -163,10 +163,6 @@ config SOC_ADC_ATTEN_NUM
|
|||||||
int
|
int
|
||||||
default 4
|
default 4
|
||||||
|
|
||||||
config SOC_ADC_DIGI_SEGMENTED_THRESH
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config SOC_ADC_DIGI_CONTROLLER_NUM
|
config SOC_ADC_DIGI_CONTROLLER_NUM
|
||||||
int
|
int
|
||||||
default 1
|
default 1
|
||||||
|
@@ -87,7 +87,6 @@
|
|||||||
#define SOC_ADC_ATTEN_NUM (4)
|
#define SOC_ADC_ATTEN_NUM (4)
|
||||||
|
|
||||||
/*!< Digital */
|
/*!< Digital */
|
||||||
#define SOC_ADC_DIGI_SEGMENTED_THRESH 1
|
|
||||||
#define SOC_ADC_DIGI_CONTROLLER_NUM (1U)
|
#define SOC_ADC_DIGI_CONTROLLER_NUM (1U)
|
||||||
#define SOC_ADC_PATT_LEN_MAX (8) /*!< One pattern table, each contains 8 items. Each item takes 1 byte */
|
#define SOC_ADC_PATT_LEN_MAX (8) /*!< One pattern table, each contains 8 items. Each item takes 1 byte */
|
||||||
#define SOC_ADC_DIGI_MIN_BITWIDTH (12)
|
#define SOC_ADC_DIGI_MIN_BITWIDTH (12)
|
||||||
|
Reference in New Issue
Block a user