The official mbed C/C SDK provides the software platform and libraries to build your applications.

Fork of mbed by mbed official

Committer:
emilmont
Date:
Fri Feb 14 14:36:43 2014 +0000
Revision:
77:869cf507173a
Child:
92:4fc01daae5a5
Release 77 of the mbed library

Main changes:
* Add target NUCLEO_F030R8
* Add target NUCLEO_F401RE
* Add target NUCLEO_F103RB
* Add target NUCLEO_L152RE

Who changed what in which revision?

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