Skip to content

Commit

Permalink
Bluetooth: controller: Add Kconfig for Optimize for Speed
Browse files Browse the repository at this point in the history
Add Kconfig option to support building the controller
optimized for speed.

Fixes zephyrproject-rtos#21601.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
  • Loading branch information
cvinayak committed Sep 23, 2020
1 parent 5e041b5 commit 499b6c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ if(CONFIG_SOC_COMPATIBLE_NRF)
endif()

zephyr_library_compile_options_ifdef(
CONFIG_BT_CTLR_FAST_ENC
CONFIG_BT_CTLR_OPTIMIZE_FOR_SPEED
${OPTIMIZE_FOR_SPEED_FLAG}
)

Expand Down
6 changes: 6 additions & 0 deletions subsys/bluetooth/controller/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,12 @@ endif # BT_PHY_UPDATE

if BT_LL_SW

config BT_CTLR_OPTIMIZE_FOR_SPEED
bool "Optimize for Speed"
default y if BT_CTLR_LE_ENC
help
Optimize compilation of controller for execution speed.

config BT_CTLR_WORKER_PRIO
int "Radio and Ticker's Worker IRQ priority"
range 0 3 if SOC_SERIES_NRF51X
Expand Down

0 comments on commit 499b6c1

Please sign in to comment.