Skip to content

Commit

Permalink
arch: stm32f0/f1/f3/l0: remove core zephyr header inclusions
Browse files Browse the repository at this point in the history
Apply the changes done in commit aee97be to F0, F1, F3, L0 series.

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
  • Loading branch information
ydamigos authored and galak committed Jul 6, 2018
1 parent 9a89320 commit 4e26f9c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
10 changes: 6 additions & 4 deletions arch/arm/soc/st_stm32/stm32f0/soc.h
Expand Up @@ -24,12 +24,14 @@

#ifndef _ASMLANGUAGE

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

#include <stm32f0xx.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>

#ifdef CONFIG_SERIAL_HAS_DRIVER
#include <stm32f0xx_ll_usart.h>
#endif
Expand Down
10 changes: 6 additions & 4 deletions arch/arm/soc/st_stm32/stm32f1/soc.h
Expand Up @@ -24,12 +24,14 @@

#ifndef _ASMLANGUAGE

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

#include <stm32f1xx.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>

#ifdef CONFIG_SERIAL_HAS_DRIVER
#include <stm32f1xx_ll_usart.h>
#endif
Expand Down
10 changes: 6 additions & 4 deletions arch/arm/soc/st_stm32/stm32f3/soc.h
Expand Up @@ -25,12 +25,14 @@

#ifndef _ASMLANGUAGE

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

#include <stm32f3xx.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>

#ifdef CONFIG_SERIAL_HAS_DRIVER
#include <stm32f3xx_ll_usart.h>
#endif
Expand Down
10 changes: 6 additions & 4 deletions arch/arm/soc/st_stm32/stm32l0/soc.h
Expand Up @@ -23,12 +23,14 @@

#ifndef _ASMLANGUAGE

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

#include <stm32l0xx.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>

#include <stm32l0xx_ll_system.h>

#ifdef CONFIG_SERIAL_HAS_DRIVER
Expand Down

0 comments on commit 4e26f9c

Please sign in to comment.