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:
parent
0f7fe2406c
commit
761bb8b1f3
1 changed files with 5 additions and 6 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue