feat(adc): support ADC oneshot and continuous mode on ESP32C5 and enable test

This commit is contained in:
gaoxu
2024-07-13 14:03:23 +08:00
parent 5ca9f2a49a
commit 65820c07ac
26 changed files with 1016 additions and 62 deletions

View File

@@ -1,6 +1,5 @@
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded.dut import Dut
@@ -11,6 +10,7 @@ from pytest_embedded.dut import Dut
@pytest.mark.esp32c3
@pytest.mark.esp32c6
@pytest.mark.esp32h2
@pytest.mark.esp32c5
@pytest.mark.adc
def test_adc_continuous(dut: Dut) -> None:
res = dut.expect(r'TASK: ret is 0, ret_num is (\d+) bytes')