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