Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Thu Nov 27 13:33:22 2014 +0000
Revision:
92:4fc01daae5a5
Release 92 of the mbed libray

Main changes:

- nRF51822: fixed pin assignment issues
- ST targets moving to the STM32Cube driver
- LPC1439: fixed serial interrupt issue
- first Cortex-A platform supported in mbed (RZ_A1H)

Who changed what in which revision?

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