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