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

Last change on this file since c991eeec was c991eeec, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 4, 2019 at 2:32:15 PM

bsps: Adjust bsp.h Doxygen groups

Update #3706.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSBSPsARMLPC24XX
5 *
6 * @brief BSP start MPU configuration.
7 */
8
9/*
10 * Copyright (c) 2011-2012 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
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_W9825G2JB75I) \
30        || defined(LPC24XX_EMC_IS42S32800B)
31        ARMV7M_MPU_REGION_INITIALIZER(
32          0,
33          0x00000000,
34          ARMV7M_MPU_SIZE_512_KB,
35          ARMV7M_MPU_ATTR_RX
36        ),
37        ARMV7M_MPU_REGION_INITIALIZER(
38          1,
39          0x10000000,
40          ARMV7M_MPU_SIZE_64_KB,
41          ARMV7M_MPU_ATTR_RWX
42        ),
43        ARMV7M_MPU_REGION_INITIALIZER(
44          2,
45          0x20000000,
46          ARMV7M_MPU_SIZE_32_KB,
47          ARMV7M_MPU_ATTR_RWX
48        ),
49        ARMV7M_MPU_REGION_INITIALIZER(
50          3,
51          0xa0000000,
52          ARMV7M_MPU_SIZE_32_MB,
53          ARMV7M_MPU_ATTR_RWX
54        ),
55        ARMV7M_MPU_REGION_INITIALIZER(
56          4,
57          0x20080000,
58          ARMV7M_MPU_SIZE_128_KB,
59          ARMV7M_MPU_ATTR_IO
60        ),
61        ARMV7M_MPU_REGION_INITIALIZER(
62          5,
63          0x40000000,
64          ARMV7M_MPU_SIZE_1_MB,
65          ARMV7M_MPU_ATTR_IO
66        ),
67        #if defined(LPC24XX_EMC_M29W320E70) \
68          || defined(LPC24XX_EMC_SST39VF3201)
69          ARMV7M_MPU_REGION_INITIALIZER(
70            6,
71            0x80000000,
72            ARMV7M_MPU_SIZE_4_MB,
73            ARMV7M_MPU_ATTR_RWX
74          ),
75        #else
76          ARMV7M_MPU_REGION_DISABLED_INITIALIZER(6),
77        #endif
78        ARMV7M_MPU_REGION_DISABLED_INITIALIZER(7)
79     #endif
80  };
81
82  BSP_START_DATA_SECTION const size_t
83    lpc24xx_start_config_mpu_region_count =
84      sizeof(lpc24xx_start_config_mpu_region)
85        / sizeof(lpc24xx_start_config_mpu_region [0]);
86#endif
Note: See TracBrowser for help on using the repository browser.