The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_SAKURAIO_EVB_01/TARGET_STM/nvic_addr.h@159:7130f322cb7e, 2017-12-21 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Dec 21 18:20:02 2017 +0000
- Revision:
- 159:7130f322cb7e
- Child:
- 170:e95d10626187
mbed library version 157
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 159:7130f322cb7e | 1 | /* mbed Microcontroller Library |
mbed_official | 159:7130f322cb7e | 2 | * Copyright (c) 2017-2017 ARM Limited |
mbed_official | 159:7130f322cb7e | 3 | * |
mbed_official | 159:7130f322cb7e | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 159:7130f322cb7e | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 159:7130f322cb7e | 6 | * You may obtain a copy of the License at |
mbed_official | 159:7130f322cb7e | 7 | * |
mbed_official | 159:7130f322cb7e | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 159:7130f322cb7e | 9 | * |
mbed_official | 159:7130f322cb7e | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 159:7130f322cb7e | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 159:7130f322cb7e | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 159:7130f322cb7e | 13 | * See the License for the specific language governing permissions and |
mbed_official | 159:7130f322cb7e | 14 | * limitations under the License. |
mbed_official | 159:7130f322cb7e | 15 | */ |
mbed_official | 159:7130f322cb7e | 16 | #ifndef NVIC_ADDR_H |
mbed_official | 159:7130f322cb7e | 17 | #define NVIC_ADDR_H |
mbed_official | 159:7130f322cb7e | 18 | |
mbed_official | 159:7130f322cb7e | 19 | #ifdef __cplusplus |
mbed_official | 159:7130f322cb7e | 20 | extern "C" { |
mbed_official | 159:7130f322cb7e | 21 | #endif |
mbed_official | 159:7130f322cb7e | 22 | |
mbed_official | 159:7130f322cb7e | 23 | #if defined(__ICCARM__) |
mbed_official | 159:7130f322cb7e | 24 | #pragma section=".intvec" |
mbed_official | 159:7130f322cb7e | 25 | #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)__section_begin(".intvec")) |
mbed_official | 159:7130f322cb7e | 26 | #elif defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) |
mbed_official | 159:7130f322cb7e | 27 | extern uint32_t Load$$LR$$LR_IROM1$$Base[]; |
mbed_official | 159:7130f322cb7e | 28 | #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)Load$$LR$$LR_IROM1$$Base) |
mbed_official | 159:7130f322cb7e | 29 | #elif defined(__GNUC__) |
mbed_official | 159:7130f322cb7e | 30 | extern uint32_t g_pfnVectors[]; |
mbed_official | 159:7130f322cb7e | 31 | #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)g_pfnVectors) |
mbed_official | 159:7130f322cb7e | 32 | #else |
mbed_official | 159:7130f322cb7e | 33 | #error "Flash vector address not set for this toolchain" |
mbed_official | 159:7130f322cb7e | 34 | #endif |
mbed_official | 159:7130f322cb7e | 35 | |
mbed_official | 159:7130f322cb7e | 36 | #ifdef __cplusplus |
mbed_official | 159:7130f322cb7e | 37 | } |
mbed_official | 159:7130f322cb7e | 38 | #endif |
mbed_official | 159:7130f322cb7e | 39 | |
mbed_official | 159:7130f322cb7e | 40 | #endif |