Skip to content
Permalink
Browse files

bluetooth: controller: Add def's re. update to slot reservation calc

Add defines to support updated slot reservation calculation in advertise
Note: Numbers used in added defines are subject to HW specific tuning

Signed-off-by: Erik Brockhoff <erbr@oticon.com>
  • Loading branch information...
erbr-ot authored and aescolar committed Feb 21, 2019
1 parent 1618c1b commit 5c3709c13fd88f6ac186511ec326f9a65f52103f
Showing with 12 additions and 0 deletions.
  1. +12 −0 subsys/bluetooth/controller/ll_sw/nordic/lll/lll_vendor.h
@@ -9,4 +9,16 @@
#define EVENT_OVERHEAD_PREEMPT_MIN_US 0
#define EVENT_OVERHEAD_PREEMPT_MAX_US EVENT_OVERHEAD_XTAL_US
#define EVENT_OVERHEAD_START_US 200
/* Worst-case time margin needed after event end-time in the air
* (done/preempt race margin + power-down/chain delay)
*/
#define EVENT_OVERHEAD_END_US 40
#define EVENT_JITTER_US 16

#define EVENT_RX_JITTER_US(phy) 16 /* Radio Rx timing uncertainty */
#define EVENT_RX_TO_US(phy) ((((((phy)&0x03) + 4)<<3)/BIT((((phy)&0x3)>>1))) + \
EVENT_RX_JITTER_US(phy))

/* TODO - fix up numbers re. HW */
#define EVENT_RX_TX_TURNARROUND(phy) ((phy) == 1?100:((phy) == 2 ? 80:900))

0 comments on commit 5c3709c

Please sign in to comment.
You can’t perform that action at this time.