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 <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2019-03-14 16:13:43 +01:00 committed by Anas Nashif
commit bb35bb8ad5
2 changed files with 4 additions and 1 deletions

View file

@ -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"

View file

@ -35,6 +35,9 @@
#error Library does not support the specified device.
#endif
/* Add include for DTS generated information */
#include <generated_dts_board.h>
#define ID_UART0 ID_UART
#define UART0 UART