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

Commit 469782a

Browse files
auroraslbaescolar
authored andcommitted
nvmc: Add simple stub of NVMC
Signed-off-by: Sletnes Bjørlo, Aurora <[email protected]>
1 parent b4c2107 commit 469782a

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

src/HW_models/NRF_NVMC.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2020 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#include "NRF_NVMC.h"
7+
8+
/*
9+
* This is only a stub of the register interface with no functionality behind
10+
*/
11+
12+
NRF_NVMC_Type NRF_NVMC_regs = {0};

src/HW_models/NRF_NVMC.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2020 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#ifndef _NRF_HW_MODEL_NVMC_H
7+
#define _NRF_HW_MODEL_NVMC_H
8+
9+
#include "NRF_regs.h"
10+
11+
#ifdef __cplusplus
12+
extern "C"{
13+
#endif
14+
15+
extern NRF_NVMC_Type NRF_NVMC_regs;
16+
17+
#ifdef __cplusplus
18+
}
19+
#endif
20+
21+
#endif

src/nrfx/hal/nrf_nvmc.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2020 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#ifndef BS_NRF_NVMC_H__
7+
#define BS_NRF_NVMC_H__
8+
9+
#include "../drivers/nrfx_common.h"
10+
11+
#endif /* BS_NRF_NVMC_H__ */

src/nrfx/hal/nrf_soc_if.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ extern NRF_GPIO_Type NRF_P0_regs;
8181
extern NRF_GPIOTE_Type NRF_GPIOTE_regs;
8282
#undef NRF_GPIOTE_BASE
8383
#define NRF_GPIOTE_BASE (&NRF_GPIOTE_regs)
84+
extern NRF_NVMC_Type NRF_NVMC_regs;
85+
#undef NRF_NVMC_BASE
86+
#define NRF_NVMC_BASE (&NRF_NVMC_regs)
8487

8588

8689
/**

0 commit comments

Comments
 (0)