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:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
115:87f2f5183dfb
.

Who changed what in which revision?

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