Move CRP out of startup and into CRP.c so it can be conditionally compiled

pull/5038/head
Chris Snow 2017-09-05 16:35:55 +01:00
parent fc503b8daf
commit a08fc2bb7a
2 changed files with 18 additions and 6 deletions

View File

@ -0,0 +1,18 @@
/* mbed Microcontroller Library
* Copyright (c) 2017 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if !defined(MBED_APP_START) // do not include CRP if there is a bootloader.
long CRP_Key __attribute__((section(".ARM.__at_0x000002FC "))) = 0xFFFFFFFF;
#endif

View File

@ -82,12 +82,6 @@ __Vectors DCD __initial_sp ; Top of Stack
DCD PLL1_IRQHandler ; 48: PLL1 Lock (USB PLL)
IF :LNOT::DEF:NO_CRP
AREA |.ARM.__at_0x02FC|, CODE, READONLY
CRP_Key DCD 0xFFFFFFFF
ENDIF
AREA |.text|, CODE, READONLY