anyThing Connected Team / mbed-dev

Dependents:   BREAK_SENSOR_LED

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Wed Apr 12 16:21:43 2017 +0100
Revision:
162:e13f6fdb2ac4
Child:
167:e84263d55307
This updates the lib to the mbed lib v140

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 162:e13f6fdb2ac4 1 /* mbed Microcontroller Library
<> 162:e13f6fdb2ac4 2 * CMSIS-style functionality to support dynamic vectors
<> 162:e13f6fdb2ac4 3 *******************************************************************************
<> 162:e13f6fdb2ac4 4 * Copyright (c) 2014, STMicroelectronics
<> 162:e13f6fdb2ac4 5 * All rights reserved.
<> 162:e13f6fdb2ac4 6 *
<> 162:e13f6fdb2ac4 7 * Redistribution and use in source and binary forms, with or without
<> 162:e13f6fdb2ac4 8 * modification, are permitted provided that the following conditions are met:
<> 162:e13f6fdb2ac4 9 *
<> 162:e13f6fdb2ac4 10 * 1. Redistributions of source code must retain the above copyright notice,
<> 162:e13f6fdb2ac4 11 * this list of conditions and the following disclaimer.
<> 162:e13f6fdb2ac4 12 * 2. Redistributions in binary form must reproduce the above copyright notice,
<> 162:e13f6fdb2ac4 13 * this list of conditions and the following disclaimer in the documentation
<> 162:e13f6fdb2ac4 14 * and/or other materials provided with the distribution.
<> 162:e13f6fdb2ac4 15 * 3. Neither the name of STMicroelectronics nor the names of its contributors
<> 162:e13f6fdb2ac4 16 * may be used to endorse or promote products derived from this software
<> 162:e13f6fdb2ac4 17 * without specific prior written permission.
<> 162:e13f6fdb2ac4 18 *
<> 162:e13f6fdb2ac4 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
<> 162:e13f6fdb2ac4 20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
<> 162:e13f6fdb2ac4 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
<> 162:e13f6fdb2ac4 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
<> 162:e13f6fdb2ac4 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
<> 162:e13f6fdb2ac4 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
<> 162:e13f6fdb2ac4 25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
<> 162:e13f6fdb2ac4 26 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
<> 162:e13f6fdb2ac4 27 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<> 162:e13f6fdb2ac4 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<> 162:e13f6fdb2ac4 29 *******************************************************************************
<> 162:e13f6fdb2ac4 30 */
<> 162:e13f6fdb2ac4 31
<> 162:e13f6fdb2ac4 32 #ifndef MBED_CMSIS_NVIC_H
<> 162:e13f6fdb2ac4 33 #define MBED_CMSIS_NVIC_H
<> 162:e13f6fdb2ac4 34
<> 162:e13f6fdb2ac4 35 // STM32F437VG
<> 162:e13f6fdb2ac4 36 // CORE: 16 vectors = 64 bytes from 0x00 to 0x3F
<> 162:e13f6fdb2ac4 37 // MCU Peripherals: 91 vectors = 364 bytes from 0x40 to 0x1AB
<> 162:e13f6fdb2ac4 38 // Total: 107 vectors = 428 bytes (0x1AC) to be reserved in RAM
<> 162:e13f6fdb2ac4 39 #define NVIC_NUM_VECTORS 107
<> 162:e13f6fdb2ac4 40 #define NVIC_USER_IRQ_OFFSET 16
<> 162:e13f6fdb2ac4 41
<> 162:e13f6fdb2ac4 42 #include "cmsis.h"
<> 162:e13f6fdb2ac4 43
<> 162:e13f6fdb2ac4 44 #ifdef __cplusplus
<> 162:e13f6fdb2ac4 45 extern "C" {
<> 162:e13f6fdb2ac4 46 #endif
<> 162:e13f6fdb2ac4 47
<> 162:e13f6fdb2ac4 48 void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
<> 162:e13f6fdb2ac4 49 uint32_t NVIC_GetVector(IRQn_Type IRQn);
<> 162:e13f6fdb2ac4 50
<> 162:e13f6fdb2ac4 51 #ifdef __cplusplus
<> 162:e13f6fdb2ac4 52 }
<> 162:e13f6fdb2ac4 53 #endif
<> 162:e13f6fdb2ac4 54
<> 162:e13f6fdb2ac4 55 #endif