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:
Kojto
Date:
Wed Jan 13 09:48:29 2016 +0000
Revision:
112:6f327212ef96
Release 112 of the mbed library

Changes:
- new platforms - STM32 B96B F446, MOTE_L152RC
- nrf51 - fix serial init bug (character sent)
- stm all devices - fix RTC clocking in the init
- stm f0 - SystemInit clock fix, for SetVector()
- RawSerial - fix for microlib (vsnprintf with size 0)

Who changed what in which revision?

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