kopia lustrzana https://github.com/espressif/esp-idf
gptimer: test on c2 with xtal 26mhz
rodzic
075e0729de
commit
bec44ca2e9
|
@ -251,6 +251,14 @@ component_ut_pytest_esp32c2_generic:
|
||||||
- build_pytest_components_esp32c2
|
- build_pytest_components_esp32c2
|
||||||
tags: [ esp32c2, generic ]
|
tags: [ esp32c2, generic ]
|
||||||
|
|
||||||
|
component_ut_pytest_esp32c2_xtal_26mhz:
|
||||||
|
extends:
|
||||||
|
- .pytest_components_dir_template
|
||||||
|
- .rules:test:component_ut-esp32c2
|
||||||
|
needs:
|
||||||
|
- build_pytest_components_esp32c2
|
||||||
|
tags: [ esp32c2, xtal_26mhz ]
|
||||||
|
|
||||||
component_ut_pytest_esp32c3_generic:
|
component_ut_pytest_esp32c3_generic:
|
||||||
extends:
|
extends:
|
||||||
- .pytest_components_dir_template
|
- .pytest_components_dir_template
|
||||||
|
|
|
@ -7,11 +7,30 @@ from pytest_embedded import Dut
|
||||||
|
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
@pytest.mark.parametrize('config', [
|
@pytest.mark.parametrize(
|
||||||
'iram_safe',
|
'config',
|
||||||
'release',
|
[
|
||||||
], indirect=True)
|
'iram_safe',
|
||||||
|
'release',
|
||||||
|
],
|
||||||
|
indirect=True,
|
||||||
|
)
|
||||||
def test_gptimer(dut: Dut) -> None:
|
def test_gptimer(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
dut.expect_exact('Press ENTER to see the list of tests')
|
||||||
dut.write('*')
|
dut.write('*')
|
||||||
dut.expect_unity_test_output()
|
dut.expect_unity_test_output()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.esp32c2
|
||||||
|
@pytest.mark.xtal_26mhz
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
'config, baud',
|
||||||
|
[
|
||||||
|
('esp32c2_xtal26m', '74880'),
|
||||||
|
],
|
||||||
|
indirect=True,
|
||||||
|
)
|
||||||
|
def test_gptimer_esp32c2_xtal_26mhz(dut: Dut) -> None:
|
||||||
|
dut.expect_exact('Press ENTER to see the list of tests')
|
||||||
|
dut.write('*')
|
||||||
|
dut.expect_unity_test_output()
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
CONFIG_IDF_TARGET="esp32c2"
|
||||||
|
CONFIG_ESP32C2_XTAL_FREQ_26=y
|
|
@ -8,15 +8,10 @@ PROVIDE ( UART1 = 0x60010000 );
|
||||||
PROVIDE ( SPIMEM1 = 0x60002000 );
|
PROVIDE ( SPIMEM1 = 0x60002000 );
|
||||||
PROVIDE ( SPIMEM0 = 0x60003000 );
|
PROVIDE ( SPIMEM0 = 0x60003000 );
|
||||||
PROVIDE ( GPIO = 0x60004000 );
|
PROVIDE ( GPIO = 0x60004000 );
|
||||||
PROVIDE ( SIGMADELTA = 0x60004f00 );
|
|
||||||
PROVIDE ( RTCCNTL = 0x60008000 );
|
PROVIDE ( RTCCNTL = 0x60008000 );
|
||||||
PROVIDE ( RTCIO = 0x60008400 );
|
PROVIDE ( RTCIO = 0x60008400 );
|
||||||
PROVIDE ( EFUSE = 0x60008800 );
|
PROVIDE ( EFUSE = 0x60008800 );
|
||||||
PROVIDE ( HINF = 0x6000B000 );
|
|
||||||
PROVIDE ( I2C0 = 0x60013000 );
|
PROVIDE ( I2C0 = 0x60013000 );
|
||||||
PROVIDE ( HOST = 0x60015000 );
|
|
||||||
PROVIDE ( PCNT = 0x60017000 );
|
|
||||||
PROVIDE ( SLC = 0x60018000 );
|
|
||||||
PROVIDE ( LEDC = 0x60019000 );
|
PROVIDE ( LEDC = 0x60019000 );
|
||||||
PROVIDE ( TIMERG0 = 0x6001F000 );
|
PROVIDE ( TIMERG0 = 0x6001F000 );
|
||||||
PROVIDE ( SYSTIMER = 0x60023000 );
|
PROVIDE ( SYSTIMER = 0x60023000 );
|
||||||
|
|
|
@ -47,6 +47,7 @@ markers =
|
||||||
wifi_router: both the runner and dut connect to the same wifi router
|
wifi_router: both the runner and dut connect to the same wifi router
|
||||||
wifi_high_traffic: wifi high traffic runners
|
wifi_high_traffic: wifi high traffic runners
|
||||||
wifi_wlan: wifi runner with a wireless NIC
|
wifi_wlan: wifi runner with a wireless NIC
|
||||||
|
xtal_26mhz: runner with 26MHz xtal on board
|
||||||
|
|
||||||
# multi-dut markers
|
# multi-dut markers
|
||||||
multi_dut_generic: tests should be run on generic runners, at least have two duts connected.
|
multi_dut_generic: tests should be run on generic runners, at least have two duts connected.
|
||||||
|
|
Ładowanie…
Reference in New Issue