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