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:
157:e7ca05fa8600
Child:
170:e95d10626187
mbed library. Release version 158

Who changed what in which revision?

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