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