soc: arm: do not include kernel headers in soc.h
We shall not include core kernel headers in soc.h header of ARM SoCs. We should try to only include the vendor headers and auto-generated board header from DTS. This commit implements this policy for the SoCs, whose builds have shown to fail due to header inclusion cycles. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
cfa2fb278f
commit
affddef4cf
6 changed files with 24 additions and 30 deletions
|
@ -19,16 +19,15 @@
|
|||
#ifndef _STM32L4X_SOC_H_
|
||||
#define _STM32L4X_SOC_H_
|
||||
|
||||
#include <sys/util.h>
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <stm32l4xx.h>
|
||||
|
||||
/* ARM CMSIS definitions must be included before kernel_includes.h.
|
||||
* Therefore, it is essential to include kernel_includes.h after including
|
||||
* core SOC-specific headers.
|
||||
*/
|
||||
#include <kernel_includes.h>
|
||||
/* Add include for DTS generated information */
|
||||
#include <generated_dts_board.h>
|
||||
|
||||
#ifdef CONFIG_EXTI_STM32
|
||||
#include <stm32l4xx_ll_exti.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue