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:
parent
92b8a41f20
commit
aee97be710
8 changed files with 16 additions and 16 deletions
|
@ -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"
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
#include <zephyr/types.h>
|
||||
#include <soc.h>
|
||||
#include <gpio.h>
|
||||
|
||||
/*
|
||||
* Pin flags/attributes
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue