1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/**
* @file
*
* @ingroup lpc24xx
*
* @brief BSP start MPU configuration.
*/
/*
* Copyright (c) 2011-2012 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Obere Lagerstr. 30
* 82178 Puchheim
* Germany
* <rtems@embedded-brains.de>
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*/
#include <bsp/start-config.h>
#ifdef ARM_MULTILIB_ARCH_V7M
BSP_START_DATA_SECTION const ARMV7M_MPU_Region
lpc24xx_start_config_mpu_regions [LPC24XX_MPU_REGION_COUNT] = {
ARMV7M_MPU_REGION_INITIALIZER(
0,
0x00000000,
ARMV7M_MPU_SIZE_512_KB,
ARMV7M_MPU_ATTR_RX
),
ARMV7M_MPU_REGION_INITIALIZER(
1,
0x10000000,
ARMV7M_MPU_SIZE_64_KB,
ARMV7M_MPU_ATTR_RWX
),
ARMV7M_MPU_REGION_INITIALIZER(
2,
0x20000000,
ARMV7M_MPU_SIZE_32_KB,
ARMV7M_MPU_ATTR_RWX
),
ARMV7M_MPU_REGION_INITIALIZER(
3,
0xa0000000,
ARMV7M_MPU_SIZE_32_MB,
ARMV7M_MPU_ATTR_RWX
),
ARMV7M_MPU_REGION_INITIALIZER(
4,
0x20080000,
ARMV7M_MPU_SIZE_128_KB,
ARMV7M_MPU_ATTR_IO
),
ARMV7M_MPU_REGION_INITIALIZER(
5,
0x40000000,
ARMV7M_MPU_SIZE_1_MB,
ARMV7M_MPU_ATTR_IO
),
ARMV7M_MPU_REGION_DISABLED_INITIALIZER(6),
ARMV7M_MPU_REGION_DISABLED_INITIALIZER(7)
};
#endif
|