|
| 1 | +/****************************************************************************** |
| 2 | + * @file startup_ARMCM3.c |
| 3 | + * @brief CMSIS-Core(M) Device Startup File for a Cortex-M3 Device |
| 4 | + * @version V2.0.3 |
| 5 | + * @date 31. March 2020 |
| 6 | + ******************************************************************************/ |
| 7 | +/* |
| 8 | + * Copyright (c) 2009-2020 Arm Limited. All rights reserved. |
| 9 | + * |
| 10 | + * SPDX-License-Identifier: Apache-2.0 |
| 11 | + * |
| 12 | + * Licensed under the Apache License, Version 2.0 (the License); you may |
| 13 | + * not use this file except in compliance with the License. |
| 14 | + * You may obtain a copy of the License at |
| 15 | + * |
| 16 | + * www.apache.org/licenses/LICENSE-2.0 |
| 17 | + * |
| 18 | + * Unless required by applicable law or agreed to in writing, software |
| 19 | + * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| 20 | + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 21 | + * See the License for the specific language governing permissions and |
| 22 | + * limitations under the License. |
| 23 | + */ |
| 24 | + |
| 25 | +#if defined (ARMCM3) |
| 26 | + #include "ARMCM3.h" |
| 27 | +#else |
| 28 | + #error device not specified! |
| 29 | +#endif |
| 30 | + |
| 31 | + |
| 32 | +#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) |
| 33 | + #pragma clang diagnostic push |
| 34 | + #pragma clang diagnostic ignored "-Wmissing-noreturn" |
| 35 | +#endif |
| 36 | + |
| 37 | +/*---------------------------------------------------------------------------- |
| 38 | + Reset Handler called on controller reset |
| 39 | + *----------------------------------------------------------------------------*/ |
| 40 | +void Reset_Handler(void) |
| 41 | +{ |
| 42 | +} |
| 43 | + |
| 44 | +/*---------------------------------------------------------------------------- |
| 45 | + Hard Fault Handler |
| 46 | + *----------------------------------------------------------------------------*/ |
| 47 | +void HardFault_Handler(void) |
| 48 | +{ |
| 49 | + while(1); |
| 50 | +} |
| 51 | + |
| 52 | +/*---------------------------------------------------------------------------- |
| 53 | + Default Handler for Exceptions / Interrupts |
| 54 | + *----------------------------------------------------------------------------*/ |
| 55 | +void Default_Handler(void) |
| 56 | +{ |
| 57 | + while(1); |
| 58 | +} |
| 59 | + |
| 60 | +#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) |
| 61 | + #pragma clang diagnostic pop |
| 62 | +#endif |
| 63 | + |
0 commit comments