Skip to content
Browse files

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 <>
  • Loading branch information...
ioannisg authored and nashif committed Mar 14, 2019
1 parent cebc262 commit bb35bb8ad52420018bdc7e269004ca1e0059282a
Showing with 4 additions and 1 deletion.
  1. +1 −1 soc/arm/atmel_sam/common/arm_mpu_regions.c
  2. +3 −0 soc/arm/atmel_sam/sam3x/soc.h
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0

#include <soc.h>
#include <misc/slist.h>
#include <arch/arm/cortex_m/mpu/arm_mpu.h>

#include "arm_mpu_mem_cfg.h"
@@ -35,6 +35,9 @@
#error Library does not support the specified device.

/* Add include for DTS generated information */
#include <generated_dts_board.h>

#define ID_UART0 ID_UART
#define UART0 UART

0 comments on commit bb35bb8

Please sign in to comment.
You can’t perform that action at this time.