Skip to content

Commit

Permalink
nrf_rpc: Add nrf_rpc_os_fatal_error
Browse files Browse the repository at this point in the history
Add function nrf_rpc_os_fatal_error function to
handle fatal_errors using the Zephyr's fatal error hanlding.

Signed-off-by: Georgios Vasilakis <[email protected]>
  • Loading branch information
Vge0rge committed Dec 23, 2024
1 parent 551581a commit fff3fcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions subsys/nrf_rpc/include/nrf_rpc_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ static inline void nrf_rpc_os_tls_set(void *data)
k_thread_custom_data_set(data);
}

static inline void nrf_rpc_os_fatal_error(void)
{
k_oops();
}

uint32_t nrf_rpc_os_ctx_pool_reserve(void);
void nrf_rpc_os_ctx_pool_release(uint32_t number);

Expand Down

0 comments on commit fff3fcc

Please sign in to comment.