arch: arm: soc: add explanatory comment for kernel headers' inclusion
This commit adds an explanatory comment in all soc.h headers, where kernel_includes.h header has been included, to stress out that this header must be included after SOC-specific headers are brought in. The reason is the fact that kernel_includes.h needs the ARM CMSIS definitions, which are brought in by the SOC-specific header inclusions. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
0b68560463
commit
7c9a1f0f76
8 changed files with 36 additions and 0 deletions
|
@ -23,6 +23,11 @@
|
|||
|
||||
#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>
|
||||
|
||||
#define GPIO_REG_SIZE 0x400
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue