/* Determines if the schedule item overlaps the currently running schedule item. We only care about connection schedule items  */
static int ble_ll_sched_overlaps_current(struct ble_ll_sched_item *sch)
/* Determines if the schedule item overlaps the currently running schedule item. We only care about connection schedule items  */
static int ble_ll_sched_overlaps_current(struct ble_ll_sched_item *sch)
{
    int rc;
    uint32_t ce_end_time;
    rc = 0;
    if (ble_ll_state_get() == BLE_LL_STATE_CONNECTION) {
        ce_end_time = ble_ll_conn_get_ce_end_time();
        if (CPUTIME_GT(ce_end_time, sch->start_time)) {
            rc = 1;
        }
    }
    return rc;
}