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:
AnnaBridge
Date:
Thu Sep 06 13:39:34 2018 +0100
Revision:
170:e95d10626187
Parent:
160:5571c4ff569f
mbed library. Release version 163

Who changed what in which revision?

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