Skip to content

Commit

Permalink
Merge pull request #223 from ACRIOS-Systems/feature/get_rid_of_link_u…
Browse files Browse the repository at this point in the history
…p_loop

Get rid of link_up while loop.
  • Loading branch information
MichalPrincNXP authored Apr 14, 2022
2 parents e3ff7b7 + 6811f94 commit 340dd88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions erpc_c/transports/erpc_rpmsg_lite_rtos_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ erpc_status_t RPMsgRTOSTransport::init(uint32_t src_addr, uint32_t dst_addr, voi
ready_cb();
}

while (0 == rpmsg_lite_is_link_up(s_rpmsg))
{
}
rpmsg_lite_wait_for_link_up(s_rpmsg);

#if RL_USE_STATIC_API
m_rpmsg_queue = rpmsg_queue_create(s_rpmsg, m_queue_stack, &m_queue_context);
Expand Down
4 changes: 1 addition & 3 deletions erpc_c/transports/erpc_rpmsg_lite_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ erpc_status_t RPMsgTransport::init(uint32_t src_addr, uint32_t dst_addr, void *b
ready_cb();
}

while (0 == rpmsg_lite_is_link_up(s_rpmsg))
{
}
rpmsg_lite_wait_for_link_up(s_rpmsg);

#if RL_USE_STATIC_API
m_rpmsg_ept = rpmsg_lite_create_ept(s_rpmsg, src_addr, rpmsg_read_cb, this, &m_ept_context);
Expand Down
4 changes: 1 addition & 3 deletions erpc_c/transports/erpc_rpmsg_tty_rtos_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ erpc_status_t RPMsgTTYRTOSTransport::init(uint32_t src_addr, uint32_t dst_addr,
ready_cb();
}

while (0 == rpmsg_lite_is_link_up(s_rpmsg))
{
}
rpmsg_lite_wait_for_link_up(s_rpmsg);

#if RL_USE_STATIC_API
m_rpmsg_queue = rpmsg_queue_create(s_rpmsg, m_queue_stack, &m_queue_context);
Expand Down

0 comments on commit 340dd88

Please sign in to comment.