From 493a4e8f982fe9e5f198953baeaa0a860f79b742 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 8 Oct 2025 12:10:24 -1000 Subject: [PATCH] tweak --- tests/components/bl0942/test.bk72xx-ard.yaml | 5 ++--- tests/components/cse7761/test.esp32-c3-idf.yaml | 2 +- tests/components/cse7766/test.esp32-c3-idf.yaml | 2 +- tests/components/he60r/test.esp32-c3-idf.yaml | 2 +- .../common/uart/bk72xx-ard.yaml | 13 +++++++++++++ 5 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 tests/test_build_components/common/uart/bk72xx-ard.yaml diff --git a/tests/components/bl0942/test.bk72xx-ard.yaml b/tests/components/bl0942/test.bk72xx-ard.yaml index 96e13c83a9..0caf71ba1f 100644 --- a/tests/components/bl0942/test.bk72xx-ard.yaml +++ b/tests/components/bl0942/test.bk72xx-ard.yaml @@ -1,5 +1,4 @@ -substitutions: - tx_pin: TX1 - rx_pin: RX1 +packages: + uart: !include ../../test_build_components/common/uart/bk72xx-ard.yaml <<: !include common.yaml diff --git a/tests/components/cse7761/test.esp32-c3-idf.yaml b/tests/components/cse7761/test.esp32-c3-idf.yaml index 4b7c8351a7..973b47e561 100644 --- a/tests/components/cse7761/test.esp32-c3-idf.yaml +++ b/tests/components/cse7761/test.esp32-c3-idf.yaml @@ -1,5 +1,5 @@ substitutions: packages: - uart: !include ../../test_build_components/common/uart/esp32-c3-idf.yaml + uart: !include ../../test_build_components/common/uart_38400/esp32-c3-idf.yaml <<: !include common.yaml diff --git a/tests/components/cse7766/test.esp32-c3-idf.yaml b/tests/components/cse7766/test.esp32-c3-idf.yaml index 4b7c8351a7..f86c077a51 100644 --- a/tests/components/cse7766/test.esp32-c3-idf.yaml +++ b/tests/components/cse7766/test.esp32-c3-idf.yaml @@ -1,5 +1,5 @@ substitutions: packages: - uart: !include ../../test_build_components/common/uart/esp32-c3-idf.yaml + uart: !include ../../test_build_components/common/uart_4800/esp32-c3-idf.yaml <<: !include common.yaml diff --git a/tests/components/he60r/test.esp32-c3-idf.yaml b/tests/components/he60r/test.esp32-c3-idf.yaml index 4b7c8351a7..4df76c66ff 100644 --- a/tests/components/he60r/test.esp32-c3-idf.yaml +++ b/tests/components/he60r/test.esp32-c3-idf.yaml @@ -1,5 +1,5 @@ substitutions: packages: - uart: !include ../../test_build_components/common/uart/esp32-c3-idf.yaml + uart: !include ../../test_build_components/common/uart_1200/esp32-c3-idf.yaml <<: !include common.yaml diff --git a/tests/test_build_components/common/uart/bk72xx-ard.yaml b/tests/test_build_components/common/uart/bk72xx-ard.yaml new file mode 100644 index 0000000000..8d1abca70b --- /dev/null +++ b/tests/test_build_components/common/uart/bk72xx-ard.yaml @@ -0,0 +1,13 @@ +# Common UART configuration for BK72XX Arduino tests +# Provides a shared UART bus that components can use +# Components will auto-use this bus if they don't specify uart_id + +substitutions: + tx_pin: TX1 + rx_pin: RX1 + +uart: + - id: uart_bus + tx_pin: ${tx_pin} + rx_pin: ${rx_pin} + baud_rate: 9600