egu: Add stub of EGU
Signed-off-by: Filip Zajdel <filip.zajdel@nordicsemi.no>
This commit is contained in:
parent
8885aa05ea
commit
718b82cf4b
|
@ -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];
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue