ci: twai runner setup

This commit is contained in:
igor.udot
2026-06-15 14:28:26 +08:00
committed by wanckl
parent 7e04a1b9c8
commit 3350c3207d
6 changed files with 24 additions and 20 deletions

View File

@@ -5,8 +5,7 @@ menu "Example Configuration"
config EXAMPLE_TX_GPIO_NUM
int "TX GPIO number"
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
default 21 if IDF_TARGET_ESP32
default 0
default 4
help
This option selects the GPIO pin used for the TX signal. Connect the
TX signal to your transceiver.
@@ -14,8 +13,7 @@ menu "Example Configuration"
config EXAMPLE_RX_GPIO_NUM
int "RX GPIO number"
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
default 22 if IDF_TARGET_ESP32
default 2
default 5
help
This option selects the GPIO pin used for the RX signal. Connect the
RX signal to your transceiver.

View File

@@ -5,7 +5,7 @@ from pytest_embedded import Dut
from pytest_embedded_idf.utils import idf_parametrize
@pytest.mark.twai_transceiver
@pytest.mark.twai_adapter
@idf_parametrize('target', ['esp32'], indirect=['target'])
def test_twai_alert_recovery_example(dut: Dut) -> None:
dut.expect_exact('TWAI Alert and Recovery: Driver installed')

View File

@@ -5,8 +5,7 @@ menu "Example Configuration"
config EXAMPLE_TX_GPIO_NUM
int "TX GPIO number"
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
default 21 if IDF_TARGET_ESP32
default 0
default 4
help
This option selects the GPIO pin used for the TX signal. Connect the
TX signal to your transceiver.
@@ -14,8 +13,7 @@ menu "Example Configuration"
config EXAMPLE_RX_GPIO_NUM
int "RX GPIO number"
range ENV_GPIO_RANGE_MIN ENV_GPIO_IN_RANGE_MAX
default 22 if IDF_TARGET_ESP32
default 2
default 5
help
This option selects the GPIO pin used for the RX signal. Connect the
RX signal to your transceiver.

View File

@@ -5,7 +5,7 @@ from pytest_embedded import Dut
from pytest_embedded_idf.utils import idf_parametrize
@pytest.mark.twai_transceiver
@pytest.mark.twai_adapter
@idf_parametrize('target', ['esp32'], indirect=['target'])
def test_twai_self_test_example(dut: Dut) -> None:
dut.expect_exact('TWAI Self Test: Driver installed')