egu: Add stub of EGU

Signed-off-by: Filip Zajdel <filip.zajdel@nordicsemi.no>
This commit is contained in:
Filip Zajdel 2022-06-27 14:12:52 +02:00
parent 8885aa05ea
commit 718b82cf4b
3 changed files with 49 additions and 0 deletions

13
src/HW_models/NRF_EGU.c Normal file
View File

@ -0,0 +1,13 @@
/*
* Copyright (c) 2022, Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "NRF_EGU.h"
/*
* This is only a stub of the register interface with no functionality behind
*/
NRF_EGU_Type NRF_EGU_regs[6];

23
src/HW_models/NRF_EGU.h Normal file
View File

@ -0,0 +1,23 @@
/*
* Copyright (c) 2022, Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _NRF_HW_MODEL_EGU_H
#define _NRF_HW_MODEL_EGU_H
#include "nrfx.h"
#ifdef __cplusplus
extern "C"{
#endif
extern NRF_EGU_Type NRF_EGU_regs[6];
#ifdef __cplusplus
}
#endif
#endif

View File

@ -74,6 +74,19 @@ extern NRF_GPIOTE_Type NRF_GPIOTE_regs;
extern NRF_NVMC_Type NRF_NVMC_regs;
#undef NRF_NVMC_BASE
#define NRF_NVMC_BASE (&NRF_NVMC_regs)
extern NRF_EGU_Type NRF_EGU_regs[6];
#undef NRF_EGU0_BASE
#define NRF_EGU0_BASE (&NRF_EGU_regs[0])
#undef NRF_EGU1_BASE
#define NRF_EGU1_BASE (&NRF_EGU_regs[1])
#undef NRF_EGU2_BASE
#define NRF_EGU2_BASE (&NRF_EGU_regs[2])
#undef NRF_EGU3_BASE
#define NRF_EGU3_BASE (&NRF_EGU_regs[3])
#undef NRF_EGU4_BASE
#define NRF_EGU4_BASE (&NRF_EGU_regs[4])
#undef NRF_EGU5_BASE
#define NRF_EGU5_BASE (&NRF_EGU_regs[5])
/*
* Redefine the peripheral pointers