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:
Kojto
Date:
Wed Jul 19 16:46:19 2017 +0100
Revision:
147:a97add6d7e64
Parent:
146:22da6e220af6
Child:
152:235179ab3f27
Release 147 of the mbed library.

Who changed what in which revision?

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