Skip to content

Commit 046312b

Browse files
olivier-le-sagerlubos
authored andcommitted
samples: bluetooth: Add CONFIG_FPU to ranging requestor sample
Using the FPU to accelerate floating point operations improves the runtime performance of estimate_distance() significantly. runtime without FPU: ~13.5 ms runtime with FPU: ~7ms Signed-off-by: Olivier Lesage <[email protected]>
1 parent 2bb089d commit 046312b

File tree

1 file changed

+4
-0
lines changed
  • samples/bluetooth/channel_sounding_ras_initiator

1 file changed

+4
-0
lines changed

samples/bluetooth/channel_sounding_ras_initiator/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
3434
# This allows CS and ACL to use different PHYs
3535
CONFIG_BT_TRANSMIT_POWER_CONTROL=y
3636

37+
# This improves the performance of floating-point operations
38+
CONFIG_FPU=y
39+
CONFIG_FPU_SHARING=y
40+
3741
CONFIG_CBPRINTF_FP_SUPPORT=y

0 commit comments

Comments
 (0)