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