arch/armv8-m/nvic.h: add definition for NVIC non-secure registers offset

This will make it easier to use the NVIC non-secure registers using the current NVIC secure registers definitions.
This commit is contained in:
raiden00pl 2023-07-04 13:09:12 +02:00 committed by Alan Carvalho de Assis
parent 206d339b37
commit 21ec89b067

View File

@ -60,7 +60,11 @@
/* NVIC base address ********************************************************/
#define ARMV8M_NVIC_BASE 0xe000e000
#define ARMV8M_NVIC_BASE_NS 0xe002e000
/* Non-secure NVIC access */
#define ARMV8M_NS_OFFSET 0x00020000
#define ARMV8M_NVIC_BASE_NS (ARMV8M_NVIC_BASE + ARMV8M_NS_OFFSET)
/* NVIC register offsets ****************************************************/