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: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2018-06-20 17:54:34 +02:00 committed by Carles Cufí
commit aee97be710
8 changed files with 16 additions and 16 deletions

View file

@ -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"

View file

@ -13,7 +13,6 @@
#include <zephyr/types.h>
#include <soc.h>
#include <gpio.h>
/*
* Pin flags/attributes

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -16,8 +16,8 @@ extern "C" {
#ifndef _ASMLANGUAGE
#include <fsl_common.h>
#include <device.h>
#include <misc/util.h>
#include <kernel_includes.h>
#endif /* !_ASMLANGUAGE */

View file

@ -24,12 +24,10 @@
#ifndef _ASMLANGUAGE
#include <device.h>
#include <misc/util.h>
#include <random/rand32.h>
#include <stm32f4xx.h>
#include <kernel_includes.h>
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
#include <stm32f4xx_ll_utils.h>
#include <stm32f4xx_ll_bus.h>

View file

@ -22,8 +22,8 @@
#ifndef _ASMLANGUAGE
#include <autoconf.h>
#include <device.h>
#include <stm32l4xx.h>
#include <kernel_includes.h>
#define GPIO_REG_SIZE 0x400
/* base address for where GPIO registers start */