mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
ci: twai runner setup
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user