Commit aee97be7 authored by Ioannis Glaropoulos's avatar Ioannis Glaropoulos Committed by Carles Cufi
Browse files

arch: arm: soc: remove core zephyr header inclusions from soc.h



This commit removes the direct inclusions of device.h or gpio.h
from soc.h header files in ARM SOCs, to avoid soc.h include
kernel.h.

Signed-off-by: default avatarIoannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
parent 92b8a41f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -89,8 +89,7 @@

#ifndef _ASMLANGUAGE

#include <device.h>
#include <misc/util.h>
#include <kernel_includes.h>

#include "soc_pins.h"
#include "soc_power.h"
+0 −1
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@

#include <zephyr/types.h>
#include <soc.h>
#include <gpio.h>

/*
 * Pin flags/attributes
+2 −0
Original line number Diff line number Diff line
@@ -46,6 +46,8 @@
#include "../common/soc_pmc.h"
#include "../common/soc_gpio.h"

#include <kernel_includes.h>

#endif /* _ASMLANGUAGE */

/** Peripheral Hardware Request Line Identifier */
+4 −3
Original line number Diff line number Diff line
@@ -15,9 +15,10 @@

#include <nrf_common.h>
#include <nrf.h>
#include <device.h>
#include <misc/util.h>
#include <random/rand32.h>
#include <kernel_includes.h>

/* Add include for DTS generated information */
#include <generated_dts_board.h>

#endif /* !_ASMLANGUAGE */

+4 −3
Original line number Diff line number Diff line
@@ -15,9 +15,10 @@

#include <nrf_common.h>
#include <nrf.h>
#include <device.h>
#include <misc/util.h>
#include <random/rand32.h>
#include <kernel_includes.h>

/* Add include for DTS generated information */
#include <generated_dts_board.h>

#endif /* !_ASMLANGUAGE */

Loading