Modified for BG96
Fork of mbed-dev by
targets/TARGET_STM/nvic_addr.h@188:60408c49b6d4, 2018-09-20 (annotated)
- Committer:
- WaleedElmughrabi
- Date:
- Thu Sep 20 16:11:23 2018 +0000
- Revision:
- 188:60408c49b6d4
- Parent:
- 187:0387e8f68319
Fork modified for BG96 error
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 160:d5399cc887bb | 1 | /* mbed Microcontroller Library |
<> | 160:d5399cc887bb | 2 | * Copyright (c) 2017-2017 ARM Limited |
<> | 160:d5399cc887bb | 3 | * |
<> | 160:d5399cc887bb | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 160:d5399cc887bb | 5 | * you may not use this file except in compliance with the License. |
<> | 160:d5399cc887bb | 6 | * You may obtain a copy of the License at |
<> | 160:d5399cc887bb | 7 | * |
<> | 160:d5399cc887bb | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 160:d5399cc887bb | 9 | * |
<> | 160:d5399cc887bb | 10 | * Unless required by applicable law or agreed to in writing, software |
<> | 160:d5399cc887bb | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 160:d5399cc887bb | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 160:d5399cc887bb | 13 | * See the License for the specific language governing permissions and |
<> | 160:d5399cc887bb | 14 | * limitations under the License. |
<> | 160:d5399cc887bb | 15 | */ |
<> | 160:d5399cc887bb | 16 | #ifndef NVIC_ADDR_H |
<> | 160:d5399cc887bb | 17 | #define NVIC_ADDR_H |
<> | 160:d5399cc887bb | 18 | |
<> | 160:d5399cc887bb | 19 | #ifdef __cplusplus |
<> | 160:d5399cc887bb | 20 | extern "C" { |
<> | 160:d5399cc887bb | 21 | #endif |
<> | 160:d5399cc887bb | 22 | |
<> | 160:d5399cc887bb | 23 | #if defined(__ICCARM__) |
AnnaBridge | 187:0387e8f68319 | 24 | #pragma section=".intvec" |
AnnaBridge | 187:0387e8f68319 | 25 | #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)__section_begin(".intvec")) |
AnnaBridge | 174:b96e65c34a4d | 26 | #elif defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) |
AnnaBridge | 187:0387e8f68319 | 27 | extern uint32_t Load$$LR$$LR_IROM1$$Base[]; |
AnnaBridge | 187:0387e8f68319 | 28 | #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)Load$$LR$$LR_IROM1$$Base) |
<> | 160:d5399cc887bb | 29 | #elif defined(__GNUC__) |
AnnaBridge | 187:0387e8f68319 | 30 | extern uint32_t g_pfnVectors[]; |
AnnaBridge | 187:0387e8f68319 | 31 | #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)g_pfnVectors) |
<> | 160:d5399cc887bb | 32 | #else |
AnnaBridge | 187:0387e8f68319 | 33 | #error "Flash vector address not set for this toolchain" |
<> | 160:d5399cc887bb | 34 | #endif |
<> | 160:d5399cc887bb | 35 | |
<> | 160:d5399cc887bb | 36 | #ifdef __cplusplus |
<> | 160:d5399cc887bb | 37 | } |
<> | 160:d5399cc887bb | 38 | #endif |
<> | 160:d5399cc887bb | 39 | |
<> | 160:d5399cc887bb | 40 | #endif |