tests: drivers: uart: uart_async_api: Add nrf5340_cpuapp
Add configuration for nrf5340_cpuapp. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
43a61329cc
commit
f33765dec5
|
@ -0,0 +1,2 @@
|
|||
CONFIG_UART_1_NRF_HW_ASYNC=y
|
||||
CONFIG_UART_1_NRF_HW_ASYNC_TIMER=1
|
|
@ -0,0 +1,27 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
&pinctrl {
|
||||
uart1_default_alt: uart1_default_alt {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 0, 4)>,
|
||||
<NRF_PSEL(UART_RX, 0, 5)>;
|
||||
};
|
||||
};
|
||||
|
||||
uart1_sleep_alt: uart1_sleep_alt {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 0, 4)>,
|
||||
<NRF_PSEL(UART_RX, 0, 5)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
compatible = "nordic,nrf-uarte";
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
pinctrl-0 = <&uart1_default_alt>;
|
||||
pinctrl-1 = <&uart1_sleep_alt>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
};
|
|
@ -26,6 +26,8 @@
|
|||
#define UART_DEVICE_DEV DT_NODELABEL(rtt0)
|
||||
#elif defined(CONFIG_BOARD_NRF52840DK_NRF52840)
|
||||
#define UART_DEVICE_DEV DT_NODELABEL(uart0)
|
||||
#elif defined(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP)
|
||||
#define UART_DEVICE_DEV DT_NODELABEL(uart1)
|
||||
#elif defined(CONFIG_BOARD_NRF9160DK_NRF9160)
|
||||
#define UART_DEVICE_DEV DT_NODELABEL(uart1)
|
||||
#elif defined(CONFIG_BOARD_ATSAMD21_XPRO)
|
||||
|
|
Loading…
Reference in a new issue