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_MOTE_L152RC/cmsis_nvic.h@121:672067c3ada4, 2016-04-14 (annotated)
- Committer:
- elijahorr
- Date:
- Thu Apr 14 07:28:54 2016 +0000
- Revision:
- 121:672067c3ada4
- Parent:
- 112:6f327212ef96
.
Who changed what in which revision?
User | Revision | Line number | New 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) 2014, 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 | // STM32L152RC |
Kojto | 112:6f327212ef96 | 36 | // CORE: 16 vectors = 64 bytes from 0x00 to 0x3F |
Kojto | 112:6f327212ef96 | 37 | // MCU Peripherals: 57 vectors = 228 bytes from 0x40 to 0x123 |
Kojto | 112:6f327212ef96 | 38 | // Total: 73 vectors = 292 bytes (0x124) to be reserved in RAM |
Kojto | 112:6f327212ef96 | 39 | #define NVIC_NUM_VECTORS 73 |
Kojto | 112:6f327212ef96 | 40 | #define NVIC_USER_IRQ_OFFSET 16 |
Kojto | 112:6f327212ef96 | 41 | |
Kojto | 112:6f327212ef96 | 42 | #include "cmsis.h" |
Kojto | 112:6f327212ef96 | 43 | |
Kojto | 112:6f327212ef96 | 44 | #ifdef __cplusplus |
Kojto | 112:6f327212ef96 | 45 | extern "C" { |
Kojto | 112:6f327212ef96 | 46 | #endif |
Kojto | 112:6f327212ef96 | 47 | |
Kojto | 112:6f327212ef96 | 48 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
Kojto | 112:6f327212ef96 | 49 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
Kojto | 112:6f327212ef96 | 50 | |
Kojto | 112:6f327212ef96 | 51 | #ifdef __cplusplus |
Kojto | 112:6f327212ef96 | 52 | } |
Kojto | 112:6f327212ef96 | 53 | #endif |
Kojto | 112:6f327212ef96 | 54 | |
Kojto | 112:6f327212ef96 | 55 | #endif |