The official mbed C/C SDK provides the software platform and libraries to build your applications.
Fork of mbed by
TARGET_WALLBOT_BLE/cmsis_nvic.h@92:4fc01daae5a5, 2014-11-27 (annotated)
- Committer:
- bogdanm
- Date:
- Thu Nov 27 13:33:22 2014 +0000
- Revision:
- 92:4fc01daae5a5
- Child:
- 97:433970e64889
Release 92 of the mbed libray
Main changes:
- nRF51822: fixed pin assignment issues
- ST targets moving to the STM32Cube driver
- LPC1439: fixed serial interrupt issue
- first Cortex-A platform supported in mbed (RZ_A1H)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 92:4fc01daae5a5 | 1 | /* mbed Microcontroller Library |
bogdanm | 92:4fc01daae5a5 | 2 | * CMSIS-style functionality to support dynamic vectors |
bogdanm | 92:4fc01daae5a5 | 3 | ******************************************************************************* |
bogdanm | 92:4fc01daae5a5 | 4 | * Copyright (c) 2011 ARM Limited. All rights reserved. |
bogdanm | 92:4fc01daae5a5 | 5 | * All rights reserved. |
bogdanm | 92:4fc01daae5a5 | 6 | * |
bogdanm | 92:4fc01daae5a5 | 7 | * Redistribution and use in source and binary forms, with or without |
bogdanm | 92:4fc01daae5a5 | 8 | * modification, are permitted provided that the following conditions are met: |
bogdanm | 92:4fc01daae5a5 | 9 | * |
bogdanm | 92:4fc01daae5a5 | 10 | * 1. Redistributions of source code must retain the above copyright notice, |
bogdanm | 92:4fc01daae5a5 | 11 | * this list of conditions and the following disclaimer. |
bogdanm | 92:4fc01daae5a5 | 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
bogdanm | 92:4fc01daae5a5 | 13 | * this list of conditions and the following disclaimer in the documentation |
bogdanm | 92:4fc01daae5a5 | 14 | * and/or other materials provided with the distribution. |
bogdanm | 92:4fc01daae5a5 | 15 | * 3. Neither the name of ARM Limited nor the names of its contributors |
bogdanm | 92:4fc01daae5a5 | 16 | * may be used to endorse or promote products derived from this software |
bogdanm | 92:4fc01daae5a5 | 17 | * without specific prior written permission. |
bogdanm | 92:4fc01daae5a5 | 18 | * |
bogdanm | 92:4fc01daae5a5 | 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bogdanm | 92:4fc01daae5a5 | 20 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bogdanm | 92:4fc01daae5a5 | 21 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
bogdanm | 92:4fc01daae5a5 | 22 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
bogdanm | 92:4fc01daae5a5 | 23 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
bogdanm | 92:4fc01daae5a5 | 24 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
bogdanm | 92:4fc01daae5a5 | 25 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
bogdanm | 92:4fc01daae5a5 | 26 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
bogdanm | 92:4fc01daae5a5 | 27 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
bogdanm | 92:4fc01daae5a5 | 28 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
bogdanm | 92:4fc01daae5a5 | 29 | ******************************************************************************* |
bogdanm | 92:4fc01daae5a5 | 30 | */ |
bogdanm | 92:4fc01daae5a5 | 31 | |
bogdanm | 92:4fc01daae5a5 | 32 | #ifndef MBED_CMSIS_NVIC_H |
bogdanm | 92:4fc01daae5a5 | 33 | #define MBED_CMSIS_NVIC_H |
bogdanm | 92:4fc01daae5a5 | 34 | |
bogdanm | 92:4fc01daae5a5 | 35 | #define NVIC_NUM_VECTORS (16 + 32) // CORE + MCU Peripherals |
bogdanm | 92:4fc01daae5a5 | 36 | #define NVIC_USER_IRQ_OFFSET 16 |
bogdanm | 92:4fc01daae5a5 | 37 | |
bogdanm | 92:4fc01daae5a5 | 38 | #include "nrf51822.h" |
bogdanm | 92:4fc01daae5a5 | 39 | #include "cmsis.h" |
bogdanm | 92:4fc01daae5a5 | 40 | |
bogdanm | 92:4fc01daae5a5 | 41 | |
bogdanm | 92:4fc01daae5a5 | 42 | #ifdef __cplusplus |
bogdanm | 92:4fc01daae5a5 | 43 | extern "C" { |
bogdanm | 92:4fc01daae5a5 | 44 | #endif |
bogdanm | 92:4fc01daae5a5 | 45 | |
bogdanm | 92:4fc01daae5a5 | 46 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
bogdanm | 92:4fc01daae5a5 | 47 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
bogdanm | 92:4fc01daae5a5 | 48 | |
bogdanm | 92:4fc01daae5a5 | 49 | #ifdef __cplusplus |
bogdanm | 92:4fc01daae5a5 | 50 | } |
bogdanm | 92:4fc01daae5a5 | 51 | #endif |
bogdanm | 92:4fc01daae5a5 | 52 | |
bogdanm | 92:4fc01daae5a5 | 53 | #endif |