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