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