soc: arm: stm32g071: remove kernel header inclusions in soc.h

Remove the inclusion of kernel_includes.h from soc.h and replace
it with including the board-specific auto-generated headers. This
aligns the soc.h header with the current policy not to include
kernel headers in soc.h.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2019-10-08 09:18:31 +02:00 committed by Kumar Gala
commit 761bb8b1f3

View file

@ -18,16 +18,12 @@
#ifndef _STM32G0_SOC_H_
#define _STM32G0_SOC_H_
#include <sys/util.h>
#ifndef _ASMLANGUAGE
#include <stm32g0xx.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 <stm32g0xx_ll_system.h>
#ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE
@ -52,6 +48,9 @@
#include <stm32g0xx_ll_usart.h>
#endif
/* Add include for DTS generated information */
#include <generated_dts_board.h>
#endif /* !_ASMLANGUAGE */
#endif /* _STM32G0_SOC_H_ */