This repo contains the libraries of Mbed for LPC1549 with following changes: - IAP commands. - EEPROM write and read. - UART write and read (public) - CAN can_s -> LPC_C_CAN0_Type *can
mbed/TARGET_LPC1549/cmsis_nvic.h@0:820a69dfd200, 2015-04-14 (annotated)
- Committer:
- gmatarrubia
- Date:
- Tue Apr 14 15:00:13 2015 +0200
- Revision:
- 0:820a69dfd200
Initial repo. IAP commands, EEPROM write/read, UART write/read, CAN
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gmatarrubia |
0:820a69dfd200 | 1 | /* mbed Microcontroller Library |
gmatarrubia |
0:820a69dfd200 | 2 | * CMSIS-style functionality to support dynamic vectors |
gmatarrubia |
0:820a69dfd200 | 3 | ******************************************************************************* |
gmatarrubia |
0:820a69dfd200 | 4 | * Copyright (c) 2011 ARM Limited. All rights reserved. |
gmatarrubia |
0:820a69dfd200 | 5 | * All rights reserved. |
gmatarrubia |
0:820a69dfd200 | 6 | * |
gmatarrubia |
0:820a69dfd200 | 7 | * Redistribution and use in source and binary forms, with or without |
gmatarrubia |
0:820a69dfd200 | 8 | * modification, are permitted provided that the following conditions are met: |
gmatarrubia |
0:820a69dfd200 | 9 | * |
gmatarrubia |
0:820a69dfd200 | 10 | * 1. Redistributions of source code must retain the above copyright notice, |
gmatarrubia |
0:820a69dfd200 | 11 | * this list of conditions and the following disclaimer. |
gmatarrubia |
0:820a69dfd200 | 12 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
gmatarrubia |
0:820a69dfd200 | 13 | * this list of conditions and the following disclaimer in the documentation |
gmatarrubia |
0:820a69dfd200 | 14 | * and/or other materials provided with the distribution. |
gmatarrubia |
0:820a69dfd200 | 15 | * 3. Neither the name of ARM Limited nor the names of its contributors |
gmatarrubia |
0:820a69dfd200 | 16 | * may be used to endorse or promote products derived from this software |
gmatarrubia |
0:820a69dfd200 | 17 | * without specific prior written permission. |
gmatarrubia |
0:820a69dfd200 | 18 | * |
gmatarrubia |
0:820a69dfd200 | 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
gmatarrubia |
0:820a69dfd200 | 20 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
gmatarrubia |
0:820a69dfd200 | 21 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
gmatarrubia |
0:820a69dfd200 | 22 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
gmatarrubia |
0:820a69dfd200 | 23 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
gmatarrubia |
0:820a69dfd200 | 24 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
gmatarrubia |
0:820a69dfd200 | 25 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
gmatarrubia |
0:820a69dfd200 | 26 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
gmatarrubia |
0:820a69dfd200 | 27 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
gmatarrubia |
0:820a69dfd200 | 28 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
gmatarrubia |
0:820a69dfd200 | 29 | ******************************************************************************* |
gmatarrubia |
0:820a69dfd200 | 30 | */ |
gmatarrubia |
0:820a69dfd200 | 31 | |
gmatarrubia |
0:820a69dfd200 | 32 | #ifndef MBED_CMSIS_NVIC_H |
gmatarrubia |
0:820a69dfd200 | 33 | #define MBED_CMSIS_NVIC_H |
gmatarrubia |
0:820a69dfd200 | 34 | |
gmatarrubia |
0:820a69dfd200 | 35 | #define NVIC_NUM_VECTORS (16 + 47) // CORE + MCU Peripherals |
gmatarrubia |
0:820a69dfd200 | 36 | #define NVIC_USER_IRQ_OFFSET 16 |
gmatarrubia |
0:820a69dfd200 | 37 | |
gmatarrubia |
0:820a69dfd200 | 38 | #include "cmsis.h" |
gmatarrubia |
0:820a69dfd200 | 39 | |
gmatarrubia |
0:820a69dfd200 | 40 | #ifdef __cplusplus |
gmatarrubia |
0:820a69dfd200 | 41 | extern "C" { |
gmatarrubia |
0:820a69dfd200 | 42 | #endif |
gmatarrubia |
0:820a69dfd200 | 43 | |
gmatarrubia |
0:820a69dfd200 | 44 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
gmatarrubia |
0:820a69dfd200 | 45 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
gmatarrubia |
0:820a69dfd200 | 46 | |
gmatarrubia |
0:820a69dfd200 | 47 | #ifdef __cplusplus |
gmatarrubia |
0:820a69dfd200 | 48 | } |
gmatarrubia |
0:820a69dfd200 | 49 | #endif |
gmatarrubia |
0:820a69dfd200 | 50 | |
gmatarrubia |
0:820a69dfd200 | 51 | #endif |