Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit ab77d6b

Browse files
rugeGerritsenwopu-ot
authored andcommitted
Add mocked nrf.h
This is useful if existing code and APIs include nrf.h in order to include type definitions of the NRF peripherals. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent b07ccce commit ab77d6b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if(CONFIG_BOARD_NRF52_BSIM)
2020
zephyr_include_directories(
2121
src/
2222
src/nrfx/hal/
23+
src/nrfx/mdk
2324
src/nrfx/
2425
src/HW_models/
2526
)

src/nrfx/mdk/nrf.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2020 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#ifndef NRF_H__
7+
#define NRF_H__
8+
9+
/* Only include the type definitions of the registers.
10+
*
11+
* This file will allow code to be compiled for either the real or
12+
* mocked HW. */
13+
14+
#include "NRF_regs.h"
15+
16+
#endif

0 commit comments

Comments
 (0)