Skip to content

Commit 0936821

Browse files
cvinayakAnas Nashif
authored andcommitted
Bluetooth: controller: Fast enc setup with ccflags -Ofast
To meet CPU time usage restricts inside radio ISR on nRF51 SoCs, use ccflags -Ofast when using fast encryption setup implementation in the controller. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 9182de5 commit 0936821

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
ccflags-y += -I$(srctree)/subsys/bluetooth/controller
22
ccflags-y += -I$(srctree)/subsys/bluetooth
33

4+
ccflags-$(CONFIG_BT_CTLR_FAST_ENC) += -Ofast
5+
46
obj-y += cntr.o ecb.o radio.o rand.o

subsys/bluetooth/controller/ll_sw/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ ccflags-y += -I$(srctree)/subsys/bluetooth/controller/include
22
ccflags-y += -I$(srctree)/subsys/bluetooth/controller
33
ccflags-y += -I$(srctree)/subsys/bluetooth
44

5+
ccflags-$(CONFIG_BT_CTLR_FAST_ENC) += -Ofast
6+
57
obj-y += crypto.o ctrl.o ll.o ll_filter.o
68
obj-$(CONFIG_BT_BROADCASTER) += ll_adv.o
79
obj-$(CONFIG_BT_OBSERVER) += ll_scan.o

0 commit comments

Comments
 (0)