mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
Merge branch 'ci/ease_restrictions_of_legacy_adc_test_v5.5' into 'release/v5.5'
ci(legacy_adc_dac): ease ADC read restriction (v5.5) See merge request espressif/esp-idf!45507
This commit is contained in:
@@ -195,7 +195,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
|
||||
TEST_ASSERT_LESS_THAN(10, p->type1.data);
|
||||
} 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 { // no check
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
//i2s number
|
||||
#define EXAMPLE_I2S_NUM (0)
|
||||
//i2s sample rate
|
||||
#define EXAMPLE_I2S_SAMPLE_RATE (16000)
|
||||
#define EXAMPLE_I2S_SAMPLE_RATE (32000)
|
||||
//i2s data bits
|
||||
#define EXAMPLE_I2S_SAMPLE_BITS (16)
|
||||
//enable display buffer for debug
|
||||
@@ -78,7 +78,7 @@ static void example_i2s_deinit(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