soc: arm: nordic_nrf: use aarch32 common nmi init definitions
Remove per soc definitions that are already defined in the exact same way in include/zephyr/arch/arm/aarch32/nmi.h. Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
This commit is contained in:
parent
66f6eb91f2
commit
f1263f5868
4 changed files with 4 additions and 28 deletions
|
@ -15,17 +15,11 @@
|
|||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/arch/arm/aarch32/nmi.h>
|
||||
#include <hal/nrf_power.h>
|
||||
#include <soc/nrfx_coredep.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
|
||||
#ifdef CONFIG_RUNTIME_NMI
|
||||
extern void z_arm_nmi_init(void);
|
||||
#define NMI_INIT() z_arm_nmi_init()
|
||||
#else
|
||||
#define NMI_INIT()
|
||||
#endif
|
||||
|
||||
#include <system_nrf51.h>
|
||||
#define LOG_LEVEL CONFIG_SOC_LOG_LEVEL
|
||||
LOG_MODULE_REGISTER(soc);
|
||||
|
|
|
@ -15,17 +15,11 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||
#include <zephyr/arch/arm/aarch32/nmi.h>
|
||||
#include <hal/nrf_power.h>
|
||||
#include <soc/nrfx_coredep.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
|
||||
#ifdef CONFIG_RUNTIME_NMI
|
||||
extern void z_arm_nmi_init(void);
|
||||
#define NMI_INIT() z_arm_nmi_init()
|
||||
#else
|
||||
#define NMI_INIT()
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SOC_NRF52805)
|
||||
#include <system_nrf52805.h>
|
||||
#elif defined(CONFIG_SOC_NRF52810)
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||
#include <zephyr/arch/arm/aarch32/nmi.h>
|
||||
#include <soc/nrfx_coredep.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
#include <nrf_erratas.h>
|
||||
|
@ -37,13 +38,6 @@
|
|||
#define PIN_XL1 0
|
||||
#define PIN_XL2 1
|
||||
|
||||
#ifdef CONFIG_RUNTIME_NMI
|
||||
extern void z_arm_nmi_init(void);
|
||||
#define NMI_INIT() z_arm_nmi_init()
|
||||
#else
|
||||
#define NMI_INIT()
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SOC_NRF5340_CPUAPP)
|
||||
#include <system_nrf5340_application.h>
|
||||
#elif defined(CONFIG_SOC_NRF5340_CPUNET)
|
||||
|
|
|
@ -15,16 +15,10 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/arch/arm/aarch32/cortex_m/cmsis.h>
|
||||
#include <zephyr/arch/arm/aarch32/nmi.h>
|
||||
#include <soc/nrfx_coredep.h>
|
||||
#include <zephyr/logging/log.h>
|
||||
|
||||
#ifdef CONFIG_RUNTIME_NMI
|
||||
extern void z_arm_nmi_init(void);
|
||||
#define NMI_INIT() z_arm_nmi_init()
|
||||
#else
|
||||
#define NMI_INIT()
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_SOC_NRF9160)
|
||||
#include <system_nrf9160.h>
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue