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 Nov 08 11:45:42 2018 +0000
Revision:
171:3a7713b1edbc
Parent:
TARGET_TY51822R3/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51/TARGET_MCU_NRF51822_UNIFIED/device/cmsis_nvic.h@169:a7c7b631e539
mbed library. Release version 164

Who changed what in which revision?

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