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:
99:dbbf35b96557
.

Who changed what in which revision?

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