Skip to content

Commit 9abf522

Browse files
nordic-krchrlubos
authored andcommitted
applications: connectivity_bridge: Replace deprecated Kconfig
Configuration of the UART mode with RX byte counting has been moved to the devicetree and CONFIG_UART_x_NRF_HW_ASYNC is now deprecated. Move configuration to the device tree. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
1 parent 684552a commit 9abf522

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

applications/connectivity_bridge/boards/thingy91_nrf52840.overlay

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,23 @@
3535
};
3636
};
3737

38+
/* Timer used by UARTE0 for byte counting. */
39+
&timer1 {
40+
status = "reserved";
41+
};
42+
43+
/* Timer used by UARTE1 for byte counting. */
44+
&timer2 {
45+
status = "reserved";
46+
};
47+
48+
&uart0 {
49+
timer = <&timer1>;
50+
};
51+
3852
&uart1 {
3953
status = "okay";
54+
timer = <&timer2>;
4055
};
4156

4257
&zephyr_udc0 {

applications/connectivity_bridge/boards/thingy91x_nrf5340_cpuapp.overlay

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,24 @@
3434
};
3535
};
3636

37+
/* Timer used by UARTE0 for byte counting. */
38+
&timer1 {
39+
status = "reserved";
40+
};
41+
42+
/* Timer used by UARTE1 for byte counting. */
43+
&timer2 {
44+
status = "reserved";
45+
};
46+
3747
&uart0 {
3848
status = "okay";
49+
timer = <&timer1>;
3950
};
4051

4152
&uart1 {
4253
status = "okay";
54+
timer = <&timer2>;
4355
};
4456

4557
&zephyr_udc0 {

applications/connectivity_bridge/prj.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ CONFIG_UART_LINE_CTRL=y
6666
CONFIG_UART_ASYNC_API=y
6767
CONFIG_UART_0_ASYNC=y
6868
CONFIG_UART_1_ASYNC=y
69-
CONFIG_UART_0_NRF_HW_ASYNC=y
70-
CONFIG_UART_1_NRF_HW_ASYNC=y
71-
CONFIG_UART_0_NRF_HW_ASYNC_TIMER=1
72-
CONFIG_UART_1_NRF_HW_ASYNC_TIMER=2
7369
CONFIG_UART_USE_RUNTIME_CONFIGURE=y
7470
CONFIG_NRFX_UARTE=y
7571
CONFIG_NRFX_TIMER=y

0 commit comments

Comments
 (0)