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:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 153:b484a57bc302 1 /* mbed Microcontroller Library
AnnaBridge 153:b484a57bc302 2 * CMSIS-style functionality to support dynamic vectors
AnnaBridge 153:b484a57bc302 3 *******************************************************************************
AnnaBridge 153:b484a57bc302 4 * Copyright (c) 2011 ARM Limited. All rights reserved.
AnnaBridge 153:b484a57bc302 5 * All rights reserved.
AnnaBridge 153:b484a57bc302 6 *
AnnaBridge 153:b484a57bc302 7 * Redistribution and use in source and binary forms, with or without
AnnaBridge 153:b484a57bc302 8 * modification, are permitted provided that the following conditions are met:
AnnaBridge 153:b484a57bc302 9 *
AnnaBridge 153:b484a57bc302 10 * 1. Redistributions of source code must retain the above copyright notice,
AnnaBridge 153:b484a57bc302 11 * this list of conditions and the following disclaimer.
AnnaBridge 153:b484a57bc302 12 * 2. Redistributions in binary form must reproduce the above copyright notice,
AnnaBridge 153:b484a57bc302 13 * this list of conditions and the following disclaimer in the documentation
AnnaBridge 153:b484a57bc302 14 * and/or other materials provided with the distribution.
AnnaBridge 153:b484a57bc302 15 * 3. Neither the name of ARM Limited nor the names of its contributors
AnnaBridge 153:b484a57bc302 16 * may be used to endorse or promote products derived from this software
AnnaBridge 153:b484a57bc302 17 * without specific prior written permission.
AnnaBridge 153:b484a57bc302 18 *
AnnaBridge 153:b484a57bc302 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AnnaBridge 153:b484a57bc302 20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
AnnaBridge 153:b484a57bc302 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
AnnaBridge 153:b484a57bc302 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
AnnaBridge 153:b484a57bc302 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
AnnaBridge 153:b484a57bc302 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
AnnaBridge 153:b484a57bc302 25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
AnnaBridge 153:b484a57bc302 26 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
AnnaBridge 153:b484a57bc302 27 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
AnnaBridge 153:b484a57bc302 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
AnnaBridge 153:b484a57bc302 29 *******************************************************************************
AnnaBridge 153:b484a57bc302 30 */
AnnaBridge 153:b484a57bc302 31
AnnaBridge 153:b484a57bc302 32 #ifndef MBED_CMSIS_NVIC_H
AnnaBridge 153:b484a57bc302 33 #define MBED_CMSIS_NVIC_H
AnnaBridge 153:b484a57bc302 34
AnnaBridge 153:b484a57bc302 35 #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
AnnaBridge 153:b484a57bc302 36 extern uint32_t Image$$VECTOR_RAM$$Base[];
AnnaBridge 153:b484a57bc302 37 #define __VECTOR_RAM Image$$VECTOR_RAM$$Base
AnnaBridge 153:b484a57bc302 38 #else
AnnaBridge 153:b484a57bc302 39 extern uint32_t __VECTOR_RAM[];
AnnaBridge 153:b484a57bc302 40 #endif
AnnaBridge 153:b484a57bc302 41
AnnaBridge 153:b484a57bc302 42 /* Symbols defined by the linker script */
AnnaBridge 153:b484a57bc302 43 #define NVIC_NUM_VECTORS (16 + 40) // CORE + MCU Peripherals
AnnaBridge 153:b484a57bc302 44 #define NVIC_RAM_VECTOR_ADDRESS (__VECTOR_RAM) // Vectors positioned at start of RAM
AnnaBridge 153:b484a57bc302 45
AnnaBridge 153:b484a57bc302 46 #endif