1 /*
2  * Copyright (c) 2018 Oticon A/S
3  * Copyright (c) 2020 Nordic Semiconductor ASA
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  */
7 
8 /*
9  * This file redefines macros from nrfx that need to be different for simulated devices.
10  */
11 
12 #ifndef NRFX_BSIM_REDEF_H
13 #define NRFX_BSIM_REDEF_H
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /* Redefine nrfx common macros that are not valid when using mocked peripherals */
20 #undef  NRFX_PERIPHERAL_ID_GET
21 #define NRFX_PERIPHERAL_ID_GET(base_addr)  (uint8_t)(nrfx_get_irq_number(base_addr))
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif /* NRFX_BSIM_REDEF_H */
28