Skip to content

Commit 87c91f1

Browse files
committed
soc: arm: sam3x: minor fixes in soc.h and arm_mpu_regions.c
Force soc.h to include the headers generated automatically by DTS. In addition, force arm_mpu_regions.c to include misc/slist.h for ARRAY_SIZE() macro. arm_mpu_regions.c does not need to include soc.h (it is included indirectly via arm_mpu.h) Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 8049728 commit 87c91f1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

soc/arm/atmel_sam/common/arm_mpu_regions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <soc.h>
7+
#include <misc/slist.h>
88
#include <arch/arm/cortex_m/mpu/arm_mpu.h>
99

1010
#include "arm_mpu_mem_cfg.h"

soc/arm/atmel_sam/sam3x/soc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
#error Library does not support the specified device.
3636
#endif
3737

38+
/* Add include for DTS generated information */
39+
#include <generated_dts_board.h>
40+
3841
#define ID_UART0 ID_UART
3942
#define UART0 UART
4043

0 commit comments

Comments
 (0)