mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
Enable esp32s31 RMT caps and clock source definitions for esp_driver_rmt. Add esp32s31 RMT LL/periph hooks, sleep retention metadata, and RMTMEM linker symbol.
17 lines
748 B
Python
17 lines
748 B
Python
# SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
import pytest
|
|
from pytest_embedded import Dut
|
|
from pytest_embedded_idf.utils import idf_parametrize
|
|
from pytest_embedded_idf.utils import soc_filtered_targets
|
|
|
|
|
|
@pytest.mark.generic
|
|
@idf_parametrize('target', soc_filtered_targets('SOC_RMT_SUPPORTED == 1'), indirect=['target'])
|
|
def test_dshot_esc_example(dut: Dut) -> None:
|
|
dut.expect_exact('example: Create RMT TX channel')
|
|
dut.expect_exact('example: Install Dshot ESC encoder')
|
|
dut.expect_exact('example: Enable RMT TX channel')
|
|
dut.expect_exact('example: Start ESC by sending zero throttle for a while...')
|
|
dut.expect_exact('example: Increase throttle, no telemetry')
|