Skip to content

Commit cc61e40

Browse files
alstrzebonskirlubos
authored andcommitted
applications: nrf_desktop: Suspend advertising when using USBHS
Suspends Bluetooth advertising when USBHS is connected to improve USBHS report rate. Jira: NCSDK-17701 Signed-off-by: Aleksander Strzebonski <[email protected]>
1 parent 10cd2b9 commit cc61e40

File tree

8 files changed

+32
-0
lines changed

8 files changed

+32
-0
lines changed

applications/nrf_desktop/configuration/nrf54h20dk_nrf54h20_cpuapp/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ CONFIG_DESKTOP_USB_ENABLE=y
3737
# Enable the only USB stack that supports USBHS
3838
CONFIG_DESKTOP_USB_STACK_NEXT=y
3939

40+
# Suspend Bluetooth while USB is connected to improve USBHS report rate.
41+
CONFIG_DESKTOP_BLE_ADV_CTRL_ENABLE=y
42+
CONFIG_DESKTOP_BLE_ADV_CTRL_SUSPEND_ON_USB=y
43+
4044
CONFIG_DESKTOP_DFU_MCUMGR_ENABLE=y
4145
CONFIG_CAF_INIT_LOG_BLE_SMP_TRANSFER_EVENTS=n
4246

applications/nrf_desktop/configuration/nrf54h20dk_nrf54h20_cpuapp/prj_release.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ CONFIG_DESKTOP_USB_ENABLE=y
3232
# Enable the only USB stack that supports USBHS
3333
CONFIG_DESKTOP_USB_STACK_NEXT=y
3434

35+
# Suspend Bluetooth while USB is connected to improve USBHS report rate.
36+
CONFIG_DESKTOP_BLE_ADV_CTRL_ENABLE=y
37+
CONFIG_DESKTOP_BLE_ADV_CTRL_SUSPEND_ON_USB=y
38+
3539
CONFIG_DESKTOP_DFU_MCUMGR_ENABLE=y
3640

3741
# The LLPM must be explicitly enabled, as the Bluetooth Controller

applications/nrf_desktop/configuration/nrf54lm20dk_nrf54lm20a_cpuapp/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ CONFIG_DESKTOP_USB_ENABLE=y
3737
# Enable the only USB stack that supports USBHS
3838
CONFIG_DESKTOP_USB_STACK_NEXT=y
3939

40+
# Suspend Bluetooth while USB is connected to improve USBHS report rate.
41+
CONFIG_DESKTOP_BLE_ADV_CTRL_ENABLE=y
42+
CONFIG_DESKTOP_BLE_ADV_CTRL_SUSPEND_ON_USB=y
43+
4044
CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y
4145

4246
CONFIG_DESKTOP_BLE_PEER_CONTROL=y

applications/nrf_desktop/configuration/nrf54lm20dk_nrf54lm20a_cpuapp/prj_llvm.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ CONFIG_DESKTOP_USB_ENABLE=y
3737
# Enable the only USB stack that supports USBHS
3838
CONFIG_DESKTOP_USB_STACK_NEXT=y
3939

40+
# Suspend Bluetooth while USB is connected to improve USBHS report rate.
41+
CONFIG_DESKTOP_BLE_ADV_CTRL_ENABLE=y
42+
CONFIG_DESKTOP_BLE_ADV_CTRL_SUSPEND_ON_USB=y
43+
4044
CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y
4145

4246
CONFIG_DESKTOP_BLE_PEER_CONTROL=y

applications/nrf_desktop/configuration/nrf54lm20dk_nrf54lm20a_cpuapp/prj_release.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ CONFIG_DESKTOP_USB_ENABLE=y
3232
# Enable the only USB stack that supports USBHS
3333
CONFIG_DESKTOP_USB_STACK_NEXT=y
3434

35+
# Suspend Bluetooth while USB is connected to improve USBHS report rate.
36+
CONFIG_DESKTOP_BLE_ADV_CTRL_ENABLE=y
37+
CONFIG_DESKTOP_BLE_ADV_CTRL_SUSPEND_ON_USB=y
38+
3539
CONFIG_DESKTOP_BLE_PEER_CONTROL=y
3640
CONFIG_DESKTOP_BLE_PEER_CONTROL_BUTTON=0x0000
3741
CONFIG_DESKTOP_BLE_PEER_ERASE_ON_START=y

applications/nrf_desktop/configuration/nrf54lm20pdk_nrf54lm20a_cpuapp/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ CONFIG_DESKTOP_USB_ENABLE=y
4545
# Enable the only USB stack that supports USBHS
4646
CONFIG_DESKTOP_USB_STACK_NEXT=y
4747

48+
# Suspend Bluetooth while USB is connected to improve USBHS report rate.
49+
CONFIG_DESKTOP_BLE_ADV_CTRL_ENABLE=y
50+
CONFIG_DESKTOP_BLE_ADV_CTRL_SUSPEND_ON_USB=y
51+
4852
CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y
4953

5054
CONFIG_DESKTOP_BLE_PEER_CONTROL=y

applications/nrf_desktop/configuration/nrf54lm20pdk_nrf54lm20a_cpuapp/prj_llvm.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ CONFIG_DESKTOP_USB_ENABLE=y
4545
# Enable the only USB stack that supports USBHS
4646
CONFIG_DESKTOP_USB_STACK_NEXT=y
4747

48+
# Suspend Bluetooth while USB is connected to improve USBHS report rate.
49+
CONFIG_DESKTOP_BLE_ADV_CTRL_ENABLE=y
50+
CONFIG_DESKTOP_BLE_ADV_CTRL_SUSPEND_ON_USB=y
51+
4852
CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y
4953

5054
CONFIG_DESKTOP_BLE_PEER_CONTROL=y

applications/nrf_desktop/configuration/nrf54lm20pdk_nrf54lm20a_cpuapp/prj_release.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ CONFIG_DESKTOP_USB_ENABLE=y
4040
# Enable the only USB stack that supports USBHS
4141
CONFIG_DESKTOP_USB_STACK_NEXT=y
4242

43+
# Suspend Bluetooth while USB is connected to improve USBHS report rate.
44+
CONFIG_DESKTOP_BLE_ADV_CTRL_ENABLE=y
45+
CONFIG_DESKTOP_BLE_ADV_CTRL_SUSPEND_ON_USB=y
46+
4347
CONFIG_DESKTOP_BLE_PEER_CONTROL=y
4448
CONFIG_DESKTOP_BLE_PEER_CONTROL_BUTTON=0x0000
4549
CONFIG_DESKTOP_BLE_PEER_ERASE_ON_START=y

0 commit comments

Comments
 (0)