From 32558808f89fc3fd47d5ecb0bed80154edda9847 Mon Sep 17 00:00:00 2001 From: "Mirlenko, Aleksandr" Date: Wed, 9 Oct 2024 21:52:33 +0200 Subject: [PATCH] Port hci_uart_async sample to Moonlight --- .../nrf52833dk_nrf52833.overlay} | 0 .../boards/nrf54l15pdk_nrf54l15_cpuapp.overlay | 12 ++++++++++++ samples/bluetooth/hci_uart_async/sample.yaml | 8 ++++++++ samples/bluetooth/hci_uart_async/src/main.c | 2 +- 4 files changed, 21 insertions(+), 1 deletion(-) rename samples/bluetooth/hci_uart_async/{app.overlay => boards/nrf52833dk_nrf52833.overlay} (100%) create mode 100644 samples/bluetooth/hci_uart_async/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay diff --git a/samples/bluetooth/hci_uart_async/app.overlay b/samples/bluetooth/hci_uart_async/boards/nrf52833dk_nrf52833.overlay similarity index 100% rename from samples/bluetooth/hci_uart_async/app.overlay rename to samples/bluetooth/hci_uart_async/boards/nrf52833dk_nrf52833.overlay diff --git a/samples/bluetooth/hci_uart_async/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay b/samples/bluetooth/hci_uart_async/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay new file mode 100644 index 00000000000..7ba5755c681 --- /dev/null +++ b/samples/bluetooth/hci_uart_async/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay @@ -0,0 +1,12 @@ +/* + * Copyright (c) 2024 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: Apache-2.0 + */ + + &uart20 { + compatible = "nordic,nrf-uarte"; + current-speed = <1000000>; + status = "okay"; + hw-flow-control; +}; diff --git a/samples/bluetooth/hci_uart_async/sample.yaml b/samples/bluetooth/hci_uart_async/sample.yaml index 7faad998c6f..0425d29a4a4 100644 --- a/samples/bluetooth/hci_uart_async/sample.yaml +++ b/samples/bluetooth/hci_uart_async/sample.yaml @@ -17,3 +17,11 @@ tests: tags: - uart - bluetooth + sample.bluetooth.hci_uart.nrf54l15.all: + harness: bluetooth + platform_allow: nrf54l15pdk/nrf54l15/cpuapp + integration_platforms: + - nrf54l15pdk/nrf54l15/cpuapp + tags: + - uart + - bluetooth diff --git a/samples/bluetooth/hci_uart_async/src/main.c b/samples/bluetooth/hci_uart_async/src/main.c index 2d38d83e45c..c2ed2006856 100644 --- a/samples/bluetooth/hci_uart_async/src/main.c +++ b/samples/bluetooth/hci_uart_async/src/main.c @@ -2,7 +2,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -extern int hci_uart_main(void); +extern void hci_uart_main(void); int main(void) {