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.

Committer:
Anna Bridge
Date:
Wed Jan 17 16:13:02 2018 +0000
Revision:
160:5571c4ff569f
Parent:
158:1c57384330a6
Child:
170:e95d10626187
mbed library. Release version 158

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 158:1c57384330a6 1 /* mbed Microcontroller Library
AnnaBridge 158:1c57384330a6 2 * Copyright (c) 2017-2017 ARM Limited
AnnaBridge 158:1c57384330a6 3 *
AnnaBridge 158:1c57384330a6 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 158:1c57384330a6 5 * you may not use this file except in compliance with the License.
AnnaBridge 158:1c57384330a6 6 * You may obtain a copy of the License at
AnnaBridge 158:1c57384330a6 7 *
AnnaBridge 158:1c57384330a6 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 158:1c57384330a6 9 *
AnnaBridge 158:1c57384330a6 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 158:1c57384330a6 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 158:1c57384330a6 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 158:1c57384330a6 13 * See the License for the specific language governing permissions and
AnnaBridge 158:1c57384330a6 14 * limitations under the License.
AnnaBridge 158:1c57384330a6 15 */
AnnaBridge 158:1c57384330a6 16 #ifndef NVIC_ADDR_H
AnnaBridge 158:1c57384330a6 17 #define NVIC_ADDR_H
AnnaBridge 158:1c57384330a6 18
AnnaBridge 158:1c57384330a6 19 #ifdef __cplusplus
AnnaBridge 158:1c57384330a6 20 extern "C" {
AnnaBridge 158:1c57384330a6 21 #endif
AnnaBridge 158:1c57384330a6 22
AnnaBridge 158:1c57384330a6 23 #if defined(__ICCARM__)
AnnaBridge 158:1c57384330a6 24 #pragma section=".intvec"
AnnaBridge 158:1c57384330a6 25 #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)__section_begin(".intvec"))
AnnaBridge 158:1c57384330a6 26 #elif defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
AnnaBridge 158:1c57384330a6 27 extern uint32_t Load$$LR$$LR_IROM1$$Base[];
AnnaBridge 158:1c57384330a6 28 #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)Load$$LR$$LR_IROM1$$Base)
AnnaBridge 158:1c57384330a6 29 #elif defined(__GNUC__)
AnnaBridge 158:1c57384330a6 30 extern uint32_t g_pfnVectors[];
AnnaBridge 158:1c57384330a6 31 #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)g_pfnVectors)
AnnaBridge 158:1c57384330a6 32 #else
AnnaBridge 158:1c57384330a6 33 #error "Flash vector address not set for this toolchain"
AnnaBridge 158:1c57384330a6 34 #endif
AnnaBridge 158:1c57384330a6 35
AnnaBridge 158:1c57384330a6 36 #ifdef __cplusplus
AnnaBridge 158:1c57384330a6 37 }
AnnaBridge 158:1c57384330a6 38 #endif
AnnaBridge 158:1c57384330a6 39
AnnaBridge 158:1c57384330a6 40 #endif