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