mirror of https://github.com/ARMmbed/mbed-os.git
Move CRP out of startup and into CRP.c so it can be conditionally compiled
parent
fc503b8daf
commit
a08fc2bb7a
|
@ -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
|
|
@ -82,12 +82,6 @@ __Vectors DCD __initial_sp ; Top of Stack
|
||||||
DCD PLL1_IRQHandler ; 48: PLL1 Lock (USB PLL)
|
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
|
AREA |.text|, CODE, READONLY
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue