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