source: rtems/bsps/arm/lpc24xx/start/start-config-mpu.c @ 0b74d8f0

Last change on this file since 0b74d8f0 was 0b74d8f0, checked in by Sebastian Huber <sebastian.huber@…>, on May 8, 2019 at 11:37:06 AM

bsp/lpc24xx: Fix LPC24XX_EMC_MT48LC4M16A2 MPU cfg

  • Property mode set to 100644
File size: 2.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSBSPsARMLPC24XX
5 *
6 * @brief BSP start MPU configuration.
7 */
8
9/*
10 * Copyright (c) 2011, 2019 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Dornierstr. 4
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#include <bsp/start-config.h>
24
25#ifdef ARM_MULTILIB_ARCH_V7M
26  BSP_START_DATA_SECTION const ARMV7M_MPU_Region
27    lpc24xx_start_config_mpu_region [] = {
28      #if defined(LPC24XX_EMC_IS42S32800D7) \
29        || defined(LPC24XX_EMC_IS42S32800B) \
30        || defined(LPC24XX_EMC_MT48LC4M16A2) \
31        || defined(LPC24XX_EMC_W9825G2JB75I)
32        ARMV7M_MPU_REGION_INITIALIZER(
33          0,
34          0x00000000,
35          ARMV7M_MPU_SIZE_512_KB,
36          ARMV7M_MPU_ATTR_RX
37        ),
38        ARMV7M_MPU_REGION_INITIALIZER(
39          1,
40          0x10000000,
41          ARMV7M_MPU_SIZE_64_KB,
42          ARMV7M_MPU_ATTR_RWX
43        ),
44        ARMV7M_MPU_REGION_INITIALIZER(
45          2,
46          0x20000000,
47          ARMV7M_MPU_SIZE_32_KB,
48          ARMV7M_MPU_ATTR_RWX
49        ),
50        ARMV7M_MPU_REGION_INITIALIZER(
51          3,
52          0xa0000000,
53          #if defined(LPC24XX_EMC_MT48LC4M16A2)
54            ARMV7M_MPU_SIZE_8_MB,
55          #else
56            ARMV7M_MPU_SIZE_32_MB,
57          #endif
58          ARMV7M_MPU_ATTR_RWX
59        ),
60        ARMV7M_MPU_REGION_INITIALIZER(
61          4,
62          0x20080000,
63          ARMV7M_MPU_SIZE_128_KB,
64          ARMV7M_MPU_ATTR_IO
65        ),
66        ARMV7M_MPU_REGION_INITIALIZER(
67          5,
68          0x40000000,
69          ARMV7M_MPU_SIZE_1_MB,
70          ARMV7M_MPU_ATTR_IO
71        ),
72        #if defined(LPC24XX_EMC_M29W320E70) \
73          || defined(LPC24XX_EMC_SST39VF3201)
74          ARMV7M_MPU_REGION_INITIALIZER(
75            6,
76            0x80000000,
77            ARMV7M_MPU_SIZE_4_MB,
78            ARMV7M_MPU_ATTR_RWX
79          ),
80        #else
81          ARMV7M_MPU_REGION_DISABLED_INITIALIZER(6),
82        #endif
83        ARMV7M_MPU_REGION_DISABLED_INITIALIZER(7)
84     #endif
85  };
86
87  BSP_START_DATA_SECTION const size_t
88    lpc24xx_start_config_mpu_region_count =
89      sizeof(lpc24xx_start_config_mpu_region)
90        / sizeof(lpc24xx_start_config_mpu_region [0]);
91#endif
Note: See TracBrowser for help on using the repository browser.