File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
targets/TARGET_NXP/TARGET_LPC176X/device Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
-
17
+ #include "mbed_toolchain.h"
18
+
18
19
/* Code Read Protection
19
20
20
21
NONE 0xFFFFFFFF - No code protection.
@@ -41,10 +42,17 @@ performed on the device.
41
42
#define APPLICATION_ADDR 0
42
43
#endif
43
44
45
+ #define CRP_NONE 0xFFFFFFFF
46
+ #define CRP_1 0x12345678
47
+ #define CRP_2 0x87654321
48
+ #define CRP_3 0x43218765
49
+
50
+ #define CRP CRP_NONE
51
+
44
52
#if defined (__ICCARM__ )
45
- __root const long CRP_Key @APPLICATION_ADDR + 0x000002FC = 0xFFFFFFFF ;
53
+ __root const long CRP_Key @APPLICATION_ADDR + 0x000002FC = CRP ;
46
54
#elif defined (__ARMCC_VERSION )
47
- const long CRP_Key __attribute__((used )) __attribute__((at (APPLICATION_ADDR + 0x000002FC ))) = 0xFFFFFFFF ;
55
+ const long CRP_Key __attribute__((used )) __attribute__((at (APPLICATION_ADDR + 0x000002FC ))) = CRP ;
48
56
#elif defined (__GNUC__ )
49
- const long CRP_Key __attribute__((used )) __attribute__((section (".CRPSection" ))) = 0xFFFFFFFF ;
57
+ const long CRP_Key __attribute__((used )) __attribute__((section (".CRPSection" ))) = CRP ;
50
58
#endif
You can’t perform that action at this time.
0 commit comments