Skip to content

Commit 31c396e

Browse files
doki-nordicrlubos
authored andcommitted
samples: BT DTM: Replace timer wait with k_sleep in 2-wire UART
The 2-wire UART protocol in DTM uses a timer to wait during polling. The k_sleep has no disadvantages over it and it does not take additional resources. k_sleep will be more optimal. Signed-off-by: Dominik Kilian <[email protected]>
1 parent 052cd54 commit 31c396e

14 files changed

+22
-155
lines changed

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,11 @@ Bluetooth samples
292292
* :ref:`peripheral_status`
293293
* :ref:`peripheral_uart`
294294

295+
* :ref:`direct_test_mode` sample:
296+
297+
* Updated by simplifying the 2-wire UART polling.
298+
This is done by replacing the hardware timer with the ``k_sleep()`` function.
299+
295300
Bluetooth Mesh samples
296301
----------------------
297302

samples/bluetooth/direct_test_mode/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ target_include_directories(app PRIVATE ./src)
1212

1313
target_sources_ifndef(CONFIG_DTM_TRANSPORT_HCI app PRIVATE
1414
src/transport/dtm_uart_twowire.c
15-
src/transport/dtm_uart_wait.c
1615
)
1716

1817
target_sources_ifdef(CONFIG_DTM_TRANSPORT_HCI app PRIVATE src/transport/dtm_hci.c)

samples/bluetooth/direct_test_mode/boards/nrf54h20dk_nrf54h20_cpurad.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66

77
# Disable the unsupported driver
88
CONFIG_NRFX_TIMER0=n
9-
CONFIG_NRFX_TIMER1=n
109
CONFIG_NRFX_TIMER2=n
1110

1211
# Use necessary peripherals
1312
CONFIG_NRFX_TIMER020=y
14-
CONFIG_NRFX_TIMER021=y
1513

1614
CONFIG_MAIN_STACK_SIZE=2048
1715
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

samples/bluetooth/direct_test_mode/boards/nrf54l15dk_nrf54l05_cpuapp.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
# Disable the unsupported driver
88
CONFIG_NRFX_TIMER0=n
9-
CONFIG_NRFX_TIMER1=n
109
CONFIG_NRFX_TIMER2=n
1110

1211
# Use necessary peripherals
13-
CONFIG_NRFX_TIMER20=y
1412
CONFIG_NRFX_TIMER10=y

samples/bluetooth/direct_test_mode/boards/nrf54l15dk_nrf54l10_cpuapp.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
# Disable the unsupported driver
88
CONFIG_NRFX_TIMER0=n
9-
CONFIG_NRFX_TIMER1=n
109
CONFIG_NRFX_TIMER2=n
1110

1211
# Use necessary peripherals
13-
CONFIG_NRFX_TIMER20=y
1412
CONFIG_NRFX_TIMER10=y

samples/bluetooth/direct_test_mode/boards/nrf54l15dk_nrf54l15_cpuapp.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
# Disable the unsupported driver
88
CONFIG_NRFX_TIMER0=n
9-
CONFIG_NRFX_TIMER1=n
109
CONFIG_NRFX_TIMER2=n
1110

1211
# Use necessary peripherals
13-
CONFIG_NRFX_TIMER20=y
1412
CONFIG_NRFX_TIMER10=y

samples/bluetooth/direct_test_mode/boards/nrf54lm20dk_nrf54lm20a_cpuapp.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
# Disable the unsupported driver
88
CONFIG_NRFX_TIMER0=n
9-
CONFIG_NRFX_TIMER1=n
109
CONFIG_NRFX_TIMER2=n
1110

1211
# Use necessary peripherals
13-
CONFIG_NRFX_TIMER20=y
1412
CONFIG_NRFX_TIMER10=y

samples/bluetooth/direct_test_mode/boards/nrf54lv10dk_nrf54lv10a_cpuapp.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
# Disable the unsupported driver
88
CONFIG_NRFX_TIMER0=n
9-
CONFIG_NRFX_TIMER1=n
109
CONFIG_NRFX_TIMER2=n
1110

1211
# Use necessary peripherals
13-
CONFIG_NRFX_TIMER20=y
1412
CONFIG_NRFX_TIMER10=y

samples/bluetooth/direct_test_mode/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ CONFIG_LOG_BACKEND_RTT=y
2121

2222
# Use necessary peripherals
2323
CONFIG_NRFX_TIMER0=y
24-
CONFIG_NRFX_TIMER1=y
2524
CONFIG_NRFX_TIMER2=y
2625
CONFIG_NRFX_GPPI=y
2726
CONFIG_CLOCK_CONTROL=y

samples/bluetooth/direct_test_mode/prj_hci.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ CONFIG_LOG_BACKEND_RTT=y
2121

2222
# Use necessary peripherals
2323
CONFIG_NRFX_TIMER0=y
24-
CONFIG_NRFX_TIMER1=y
2524
CONFIG_NRFX_TIMER2=y
2625
CONFIG_NRFX_GPPI=y
2726
CONFIG_CLOCK_CONTROL=y

0 commit comments

Comments
 (0)