mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'ci/ease_restrictions_of_legacy_adc_test_v5.2' into 'release/v5.2'
ci(legacy_adc_dac): ease ADC read restriction (v5.2) See merge request espressif/esp-idf!47118
This commit is contained in:
@@ -193,7 +193,7 @@ static esp_err_t adc_dma_data_check(uint8_t *buf, int length, int ideal_level)
|
|||||||
} else if (ideal_level == 0) { // low level 0v
|
} else if (ideal_level == 0) { // low level 0v
|
||||||
TEST_ASSERT_LESS_THAN( 10, p->type1.data );
|
TEST_ASSERT_LESS_THAN( 10, p->type1.data );
|
||||||
} else if (ideal_level == 2) { // middle level 1.4v
|
} else if (ideal_level == 2) { // middle level 1.4v
|
||||||
TEST_ASSERT_INT_WITHIN( 128, 1586, p->type1.data );
|
TEST_ASSERT_INT_WITHIN(256, 1586, p->type1.data);
|
||||||
} else if (ideal_level == 3) { // normal level
|
} else if (ideal_level == 3) { // normal level
|
||||||
} else { // no check
|
} else { // no check
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
//i2s number
|
//i2s number
|
||||||
#define EXAMPLE_I2S_NUM (0)
|
#define EXAMPLE_I2S_NUM (0)
|
||||||
//i2s sample rate
|
//i2s sample rate
|
||||||
#define EXAMPLE_I2S_SAMPLE_RATE (16000)
|
#define EXAMPLE_I2S_SAMPLE_RATE (32000)
|
||||||
//i2s data bits
|
//i2s data bits
|
||||||
#define EXAMPLE_I2S_SAMPLE_BITS (16)
|
#define EXAMPLE_I2S_SAMPLE_BITS (16)
|
||||||
//enable display buffer for debug
|
//enable display buffer for debug
|
||||||
@@ -78,7 +78,7 @@ static void example_i2s_deinit(void)
|
|||||||
*/
|
*/
|
||||||
static void example_set_file_play_mode(void)
|
static void example_set_file_play_mode(void)
|
||||||
{
|
{
|
||||||
TEST_ESP_OK( i2s_set_clk(EXAMPLE_I2S_NUM, 16000, EXAMPLE_I2S_SAMPLE_BITS, 1) );
|
TEST_ESP_OK(i2s_set_clk(EXAMPLE_I2S_NUM, EXAMPLE_I2S_SAMPLE_RATE, EXAMPLE_I2S_SAMPLE_BITS, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user