1 /* 2 * Copyright (c) 2020 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /* Provides a minimalistic nrfx_glue to be used with Nordic nrfx and bsim. 8 */ 9 10 #ifndef NRFX_GLUE_BSIM_H__ 11 #define NRFX_GLUE_BSIM_H__ 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /** 18 * @brief Macro for placing a runtime assertion. 19 * 20 * @param expression Expression to be evaluated. 21 */ 22 #ifndef NRFX_ASSERT 23 #define NRFX_ASSERT(expression) 24 #endif 25 26 /** @brief Macro for entering into a critical section. */ 27 #ifndef NRFX_CRITICAL_SECTION_ENTER 28 #define NRFX_CRITICAL_SECTION_ENTER() 29 #endif 30 31 /** @brief Macro for exiting from a critical section. */ 32 #ifndef NRFX_CRITICAL_SECTION_EXIT 33 #define NRFX_CRITICAL_SECTION_EXIT() 34 #endif 35 36 #include "nrfx_bsim_redef.h" 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 #endif // NRFX_GLUE_BSIM_H__ 43