[rtems commit] bsp/lpc24xx: Fix LPC24XX_EMC_MT48LC4M16A2 MPU cfg
Sebastian Huber
sebh at rtems.org
Wed May 8 11:37:37 UTC 2019
Module: rtems
Branch: master
Commit: 0b74d8f0feddb3a1efc5d27518f3a2f6d62fcbf2
Changeset: http://git.rtems.org/rtems/commit/?id=0b74d8f0feddb3a1efc5d27518f3a2f6d62fcbf2
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed May 8 13:37:06 2019 +0200
bsp/lpc24xx: Fix LPC24XX_EMC_MT48LC4M16A2 MPU cfg
---
bsps/arm/lpc24xx/start/start-config-mpu.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/bsps/arm/lpc24xx/start/start-config-mpu.c b/bsps/arm/lpc24xx/start/start-config-mpu.c
index 8f0e49a..91d5e05 100644
--- a/bsps/arm/lpc24xx/start/start-config-mpu.c
+++ b/bsps/arm/lpc24xx/start/start-config-mpu.c
@@ -26,8 +26,9 @@
BSP_START_DATA_SECTION const ARMV7M_MPU_Region
lpc24xx_start_config_mpu_region [] = {
#if defined(LPC24XX_EMC_IS42S32800D7) \
- || defined(LPC24XX_EMC_W9825G2JB75I) \
- || defined(LPC24XX_EMC_IS42S32800B)
+ || defined(LPC24XX_EMC_IS42S32800B) \
+ || defined(LPC24XX_EMC_MT48LC4M16A2) \
+ || defined(LPC24XX_EMC_W9825G2JB75I)
ARMV7M_MPU_REGION_INITIALIZER(
0,
0x00000000,
@@ -49,11 +50,11 @@
ARMV7M_MPU_REGION_INITIALIZER(
3,
0xa0000000,
-#if defined(LPC24XX_EMC_MT48LC4M16A2)
- ARMV7M_MPU_SIZE_8_MB,
-#else
- ARMV7M_MPU_SIZE_32_MB,
-#endif
+ #if defined(LPC24XX_EMC_MT48LC4M16A2)
+ ARMV7M_MPU_SIZE_8_MB,
+ #else
+ ARMV7M_MPU_SIZE_32_MB,
+ #endif
ARMV7M_MPU_ATTR_RWX
),
ARMV7M_MPU_REGION_INITIALIZER(
More information about the vc
mailing list