From 57e64c28793d14db7d211ebf49cc2104bca1f231 Mon Sep 17 00:00:00 2001 From: "Mirlenko, Aleksandr" Date: Thu, 10 Oct 2024 14:06:18 +0200 Subject: [PATCH] Port hci_uart_async sample to nrf54l15 --- .../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 000000000000..7613ab836bae --- /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 7faad998c6f4..0425d29a4a42 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 2d38d83e45c9..c2ed2006856a 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) {