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 authored and hakehuang committed Mar 18, 2020
1 parent aedf5d8 commit 2f797b8
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 @@ -85,7 +85,7 @@ zephyr_library_include_directories(
)

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 @@ -576,6 +576,12 @@ config BT_CTLR_ZLI
shall not use Zero Latency IRQ themselves when this option is selected,
else will impact controller stability.

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.

if BT_LL_SW_LEGACY

config BT_CTLR_WORKER_PRIO
Expand Down

0 comments on commit 2f797b8

Please sign in to comment.