esp_adc: added esp32c2 adc runners

This commit is contained in:
Armando
2022-10-17 11:09:56 +08:00
parent 9cb1006b2b
commit d592d983ce
5 changed files with 60 additions and 2 deletions

View File

@@ -9,7 +9,6 @@ from pytest_embedded import Dut
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c3
@pytest.mark.esp32c2
@pytest.mark.adc
@pytest.mark.parametrize('config', [
'iram_safe',
@@ -19,3 +18,20 @@ def test_adc(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output(timeout=120)
# All ESP32C2 ADC runners are 26m xtal
@pytest.mark.esp32c2
@pytest.mark.adc
@pytest.mark.parametrize(
'config, baud',
[
('esp32c2_xtal26m_iram_safe', '74880'),
('esp32c2_xtal26m_release', '74880'),
],
indirect=True,
)
def test_adc_esp32c2_xtal_26mhz(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output(timeout=120)