diff --git a/nimble/controller/include/controller/ble_ll.h b/nimble/controller/include/controller/ble_ll.h index 051a8c840..0828e5116 100644 --- a/nimble/controller/include/controller/ble_ll.h +++ b/nimble/controller/include/controller/ble_ll.h @@ -51,13 +51,9 @@ extern "C" { /* Determines if we need to turn on/off rf clock */ #undef BLE_XCVR_RFCLK -/* Transceiver specific definitions */ -#if MYNEWT_VAL(OS_CPUTIME_FREQ) == 32768 - /* We will turn on/off rf clock */ #if MYNEWT_VAL(BLE_XTAL_SETTLE_TIME) != 0 #define BLE_XCVR_RFCLK -#endif #endif diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c index 494e04172..b3f28a218 100644 --- a/nimble/controller/src/ble_ll_conn.c +++ b/nimble/controller/src/ble_ll_conn.c @@ -1752,9 +1752,7 @@ ble_ll_conn_ext_set_params(struct ble_ll_conn_sm *connsm, connsm->max_ce_len = hcc_params->max_ce_len; } -#if MYNEWT_VAL(OS_CPUTIME_FREQ) == 32768 ble_ll_conn_calc_itvl_ticks(connsm); -#endif #if (BLE_LL_BT5_PHY_SUPPORTED == 1) ble_ll_conn_set_phy(connsm, tx_phy, rx_phy); diff --git a/nimble/controller/src/ble_ll_sched.c b/nimble/controller/src/ble_ll_sched.c index 5511a1bc2..eed686af3 100644 --- a/nimble/controller/src/ble_ll_sched.c +++ b/nimble/controller/src/ble_ll_sched.c @@ -1097,10 +1097,7 @@ ble_ll_sched_aux_scan(struct ble_mbuf_hdr *ble_hdr, now = ble_hdr->beg_cputime; earliest_start = now + os_cputime_usecs_to_ticks(aux_scan->offset); - -#if MYNEWT_VAL(OS_CPUTIME_FREQ) == 32768 earliest_start -= g_ble_ll_sched_offset_ticks; -#endif /* TODO: FIX duration. We should assure as much time as we need for specific PHY. * Also we need to take mode into account e.g in order to do