Bluetooth: controller: Move CIS peripheral functionality to ull_conn_iso
Move ull_peripheral_iso_start ull_peripheral_iso_ticker_cb to ull_conn_iso, to share code between CIS peripheral and central. Signed-off-by: Morten Priess <mtpr@oticon.com>
This commit is contained in:
parent
38a4e58d1f
commit
64ade9e01d
6 changed files with 211 additions and 201 deletions
|
@ -437,8 +437,8 @@ static void rp_cc_check_instant(struct ll_conn *conn, struct proc_ctx *ctx, uint
|
|||
if (is_instant_reached_or_passed(start_event_count,
|
||||
cc_event_counter(conn))) {
|
||||
/* Start CIS */
|
||||
ull_peripheral_iso_start(conn, conn->llcp.prep.ticks_at_expire,
|
||||
ctx->data.cis_create.cis_handle);
|
||||
ull_conn_iso_start(conn, conn->llcp.prep.ticks_at_expire,
|
||||
ctx->data.cis_create.cis_handle);
|
||||
|
||||
/* Now we can wait for CIS to become established */
|
||||
ctx->state = RP_CC_STATE_WAIT_CIS_ESTABLISHED;
|
||||
|
@ -816,8 +816,8 @@ static void lp_cc_check_instant(struct ll_conn *conn, struct proc_ctx *ctx, uint
|
|||
|
||||
if (is_instant_reached_or_passed(ctx->data.cis_create.conn_event_count, event_counter)) {
|
||||
/* Start CIS */
|
||||
ull_central_iso_start(conn, conn->llcp.prep.ticks_at_expire,
|
||||
ctx->data.cis_create.cis_handle);
|
||||
ull_conn_iso_start(conn, conn->llcp.prep.ticks_at_expire,
|
||||
ctx->data.cis_create.cis_handle);
|
||||
|
||||
/* Now we can wait for CIS to become established */
|
||||
ctx->state = LP_CC_STATE_WAIT_ESTABLISHED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue