From ea4ffc44e13784cc7f5d14d675270d2d216022ff Mon Sep 17 00:00:00 2001 From: Georgios Vasilakis Date: Mon, 23 Dec 2024 11:57:22 +0100 Subject: [PATCH] nrf_rpc: Add nrf_rpc_os_fatal_error Add function nrf_rpc_os_fatal_error function to handle fatal_errors using the Zephyr's fatal error hanlding. Signed-off-by: Georgios Vasilakis --- subsys/nrf_rpc/include/nrf_rpc_os.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subsys/nrf_rpc/include/nrf_rpc_os.h b/subsys/nrf_rpc/include/nrf_rpc_os.h index def87a991987..3a65793e8960 100644 --- a/subsys/nrf_rpc/include/nrf_rpc_os.h +++ b/subsys/nrf_rpc/include/nrf_rpc_os.h @@ -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);