From f0bd2805bc4d1f3d331785ae515a43b358da76e2 Mon Sep 17 00:00:00 2001 From: Vinayak Chettimada Date: Wed, 14 Dec 2016 11:22:22 +0100 Subject: [PATCH] Bluetooth: Controller: tune the xtal and hard realtime radio start offsets Reduce the time limit for active clock startup and increase the CPU usage time limit before hard real-time radio transmit/receive. Due to isr_wrapper overhead in ARM architectures, more time was used before hard real-time radio transmission or reception which was detected by controller implementation and the controller aborted the radio transactions. This commit permits more CPU utilization by the controller before hard real-time radio transactions start. Change-Id: Id976add80c70cabc753c43dfac6f6603588458d9 Signed-off-by: Vinayak Chettimada --- subsys/bluetooth/controller/ll/ctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/controller/ll/ctrl.c b/subsys/bluetooth/controller/ll/ctrl.c index e17b2331bb0..7b4ebd4571e 100644 --- a/subsys/bluetooth/controller/ll/ctrl.c +++ b/subsys/bluetooth/controller/ll/ctrl.c @@ -47,8 +47,8 @@ #define RADIO_CONN_EVENTS(x, y) ((uint16_t)((x) / (y))) #define RADIO_TICKER_JITTER_US 16 -#define RADIO_TICKER_START_PART_US 200 -#define RADIO_TICKER_XTAL_OFFSET_US 1500 +#define RADIO_TICKER_START_PART_US 300 +#define RADIO_TICKER_XTAL_OFFSET_US 1200 #define RADIO_TICKER_PREEMPT_PART_US 0 #define RADIO_TICKER_PREEMPT_PART_MIN_US 0 #define RADIO_TICKER_PREEMPT_PART_MAX_US RADIO_TICKER_XTAL_OFFSET_US