mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-08 18:20:02 +00:00
nimble/controller: Remove reduntant checks for OS_CPUTIME_FREQ
X-Original-Commit: a61d57e87d09255a8f705badaf6e6032ea570c8c
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user